beetlebug▾
/

winfo depth

Gives the count of bits for each pixel of a widget.

winfo depth WINDOW

Description

ztk draws with 24 bits of color for each pixel.

Returns

An integer.

Examples

% winfo depth .
24

Errors

% winfo depth
wrong # args: should be "winfo depth window"
-errorcode NONE

% winfo depth .nope
bad window path name ".nope"
-errorcode NONE

Facts

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