⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitmap.n

📁 linux系统下的音频通信
💻 N
字号:
'\"'\" Copyright (c) 1994 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) bitmap.n 1.10 96/03/29 14:48:41'\" .so man.macros.TH bitmap n 4.0 Tk "Tk Built-In Commands".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEbitmap \- Images that display two colors.SH SYNOPSIS\fBimage create bitmap \fR?\fIname\fR? ?\fIoptions\fR?.BE.SH DESCRIPTION.PPA bitmap is an image whose pixels can display either of two colorsor be transparent.A bitmap image is defined by four things:  a background color,a foreground color, and two bitmaps, called the \fIsource\fRand the \fImask\fR.Each of the bitmaps specifies 0/1 values for a rectangulararray of pixels, and the two bitmaps must have the samedimensions.For pixels where the mask is zero, the image displays nothing,producing a transparent effect.For other pixels, the image displays the foreground color ifthe source data is one and the background color if the sourcedata is zero..SH "CREATING BITMAPS".PPLike all images, bitmaps are created using the \fBimage create\fRcommand.Bitmaps support the following \fIoptions\fR:.TP\fB\-background \fIcolor\fRSpecifies a background color for the image in any of the standardways accepted by Tk.  If this option is set to an empty stringthen the background pixels will be transparent.  This effectis achieved by using the source bitmap as the mask bitmap, ignoringany \fB\-maskdata\fR or \fB\-maskfile\fR options..TP\fB\-data \fIstring\fRSpecifies the contents of the source bitmap as a string.The string must adhere to X11 bitmap format (e.g., as generatedby the \fBbitmap\fR program).If both the \fB\-data\fR and \fB\-file\fR options are specified,the \fB\-data\fR option takes precedence..TP\fB\-file \fIname\fR\fIname\fR gives the name of a file whose contents define thesource bitmap.The file must adhere to X11 bitmap format (e.g., as generatedby the \fBbitmap\fR program)..TP\fB\-foreground \fIcolor\fRSpecifies a foreground color for the image in any of the standardways accepted by Tk..TP\fB\-maskdata \fIstring\fRSpecifies the contents of the mask as a string.The string must adhere to X11 bitmap format (e.g., as generatedby the \fBbitmap\fR program).If both the \fB\-maskdata\fR and \fB\-maskfile\fR options are specified,the \fB\-maskdata\fR option takes precedence..TP\fB\-maskfile \fIname\fR\fIname\fR gives the name of a file whose contents define themask.The file must adhere to X11 bitmap format (e.g., as generatedby the \fBbitmap\fR program)..SH "IMAGE COMMAND".PPWhen a bitmap image is created, Tk also creates a new commandwhose name is the same as the image.This command may be used to invoke various operationson the image.It has the following general form:.CS\fIimageName option \fR?\fIarg arg ...\fR?.CE\fIOption\fR and the \fIarg\fRsdetermine the exact behavior of the command.  The followingcommands are possible for bitmap images:.TP\fIimageName \fBcget\fR \fIoption\fRReturns the current value of the configuration option givenby \fIoption\fR.\fIOption\fR may have any of the values accepted by the\fBimage create bitmap\fR command..TP\fIimageName \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?Query or modify the configuration options for the image.If no \fIoption\fR is specified, returns a list describing all ofthe available options for \fIimageName\fR (see \fBTk_ConfigureInfo\fR forinformation on the format of this list).  If \fIoption\fR is specifiedwith no \fIvalue\fR, then the command returns a list describing theone named option (this list will be identical to the correspondingsublist of the value returned if no \fIoption\fR is specified).  Ifone or more \fIoption\-value\fR pairs are specified, then the commandmodifies the given option(s) to have the given value(s);  inthis case the command returns an empty string.\fIOption\fR may have any of the values accepted by the\fBimage create bitmap\fR command..SH KEYWORDSbitmap, image

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -