winop

A command that is part of BLT. The command performs different kins of window operations (hence the name) on Tk windows using xlib functions.

It has the following subcommands:

  • winop convolve srcPhoto destPhoto filter : Set photo destPhoto to convolution of srcPhoto with filter. filter = list of NxN reals, the square mean-filter matrix.
  • winop lower ?window ...? : Lower windows to bottom of stacking order.
  • winop map ?window ...? : Map windows to screen. Ignored if already mapped.
  • winop move window x y : Move window to screen coordinates x, y.
  • winop raise ?window ...? : Raise windows to top of stacking order.
  • winop readjpeg filename photoName : Read JPEG file filename into existing photo photoName. Only if BLT compiled with JPEG support.
  • winop resample srcPhoto destPhoto ?horzFilter ?vertFilter?? : Set destPhoto to srcPhoto resampled with given filters. Valid filters: bell, box, bessel, bspline, catrom, default, dummy, gaussian, lanczos3, mitchell, none, sinc, triangle.
  • winop snap window photoName ?width height? : Snapshot window into existing photo photoName. Window must be fully visible. width/height limit snapshot size.
  • winop subsample srcPhoto destPhoto x y width height ?horzFilter ?vertFilter?? : Set destPhoto to subsampled region (x y width height) of srcPhoto. Filters same as resample.
  • winop unmap ?window ...? : Unmap windows from screen.
  • winop warpto ?window? : Move pointer to window. Can also be @x,y for specific coordinates. If omitted, returns current pointer x,y as 2-element list.

Example

set img [image create photo]
winop snap .h $img
winop warpto @100,100