image cget
A command of a photo or a bitmap: gives the value of an option.
IMAGENAME cget OPTION
Description
Gives the value of an option of image create for the type of the image.
Returns
The value of the option.
Examples
% image create photo c -width 8
> c cget -width
8
% image create bitmap cb -foreground blue
> cb cget -foreground
blue
Errors
% image create photo c2; c2 cget -size
unknown option "-size"
-errorcode NONE
% image create photo c3; c3 cget
wrong # args: should be "c3 cget option"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1