Name
bitmap
- bitmap
operation bitmapName
[arg arg
...] Create or return information about a bitmap created using inline Tcl code. The following operations are defined:
- bitmap compose
bitmapName text
[option value
...] Create a new bitmap from a text string and associate it with the name bitmapName. The bitmap is defined by the text in the parameter text. The following options are available:
- -font
fontName
Specify the font to use when drawing text in the bitmap.
- -rotate
theta
Rotate the bitmap by
theta
degrees.- -scale
value
Scale the bitmap by the factor of floating-point number
value
.
- -font
- bitmap data
bitmapName
Return a list of the bitmap data. The first element is a list of the height and width, the second is a list of the source data.
- bitmap define
bitmapName data
[option value
...] Create a new bitmap and associate it with the name
bitmapName
. The bitmap is defined by parameterdata
, which is a list containing two elements. The first element is a list defining the height and width. The second element is a list of the source data.The following options are available:
- -rotate
theta
Rotate the bitmap by
theta
degrees.- -scale
value
Scale the bitmap by the factor of floating-point number
value
.
- -rotate
- bitmap exists
bitmapName
Return 1 if a bitmap named
bitmapName
exists; otherwise, return 0.- bitmap height
bitmapName
Return the height of a bitmap in pixels.
- bitmap source
bitmapName
Return the source data for a bitmap as a list of hexadecimal values.
- bitmap width
bitmapName
Return the width of a bitmap in pixels.
- bitmap compose
Example
bitmap ...
Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.