Name
winop
- winop
operation
[[window
] [arg arg
...] ] Perform assorted window operations on Tk windows using Xlib functions. Also, some miscellaneous image operations are defined in preparation for a new image type in a later BLT release. The following operations are defined:
- winop convolve
srcPhoto destPhoto filter
Set the photo image
destPhoto
to the result of the convolution of photo imagesrcPhoto
with the given filter.Filter
is a list of N×N real numbers representing the square matrix for the mean filter.- winop lower
[
window
...] Lower given
window
s to the bottom of window stack.- winop map
[
window
...] Map given
window
s to scr een (ignored if already mapped).- winop move
window x y
Move the window to the screen coordinates specified by
x
andy
.- winop raise
[
window
...] Raise given
window
s to top of window stack.- winop readjpeg
filename photoName
Read the JPEG image data from the file
filename
into the photo imagephotoName
, which must already exist. Only available if BLT was compiled with JPEG image support.- winop resample
srcPhoto destPhoto
[horzFilter
[vertFilter
] ] Set the photo image
destPhoto
to the result of resampling the photo imagesrcPhoto
with the given filters. Valid values forhorzFilter
andvertFilter
arebell
,box
,bessel
,bspline
,catrom
,default
,dummy
,gaussian
,lanczos3
,mitchell
,none
,sinc
, andtriangle
.- winop snap
window photoName
[width height
] Take a snapshot of the window and store the contents in photo image
photoName
. The window must be totally visible andphotoName
must ...
- winop convolve
Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.