image width
Gives the width of an image in logical pixels.
image width NAME
Description
A photo with -density gives the width of its data divided by the density.
Returns
A count of pixels.
Examples
% image create photo w -width 20 -height 10
> image width w
20
Errors
% image width nope
image "nope" doesn't exist
-errorcode NONE
% image width
wrong # args: should be "image width name"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1