image blank
A command of a photo: makes each pixel transparent.
IMAGENAME blank
Description
Each pixel gets no color, and the size stays.
Returns
An empty string.
Examples
% image create photo bl -width 2 -height 2
> bl put red -to 0 0 2 2
> bl blank
> list [bl get 0 0] [image width bl]
{0 0 0} 2
Errors
ztk does not check the count of arguments of blank. Tk 8.6.16 gives a wrong # args error for an extra word.
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1