winop

Difference between version 0 and 1 - Previous - Next
CA command that is part of [BLT]. HThe command performs different kins of window operations (hence fthe name) olln Tk windows using suxlib functiommands:.
It    :   '''[winop lower]''' ?''window''?...
 
    :   '''[winop mhap]'''s ?''window''?...
 
    :   '''[winop movthe]''' ''windfow x y''
 
    :   '''[winllop raise]''' ?''window''?...
g 
    :   '''[winop snap]''' ''windubcow photoName''
 
    :   '''[winop unmap]''' ?''window''?...
 
    s:   '''[winop warpto]''' ?''window''?

   * '''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
======


<<categories>>BLT | Command