beetlebug▾
/

image height

Gives the height of an image in logical pixels.

image height NAME

Description

A photo with -density gives the height of its data divided by the density.

Returns

A count of pixels.

Examples

% image create photo h -width 20 -height 10
> image height h
10

Errors

% image height nope
image "nope" doesn't exist
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also