HTBasic Help
×
Menu
Index

WINDOW Statement

 
The WINDOW statement specifies the bounds of the data values to be displayed within the VIEWPORT in non-isotropic units where the X and Y units are of different lengths. If not specified, the default WINDOW is equal to the default VIEWPORT setting. It is specified as follows.
 
WINDOW Left,Right,Bottom,Top
 
The SHOW and WINDOW statements only differ in how they map data onto the VIEWPORT.
 
An image can be "mirrored" about the X or Y axis by reversing the order of the limits for each dimension by specifying the larger value before the smaller value. This is true for both the SHOW and WINDOW statements. For example:
 
SHOW 0,RATIO*100,100,0     !Mirror about Y Axis
WINDOW RATIO*100,0,0,100   !Mirror about X Axis
 
Please note: You do not have to set the WINDOW bounds to whole units. Set them to the units most convenient for your data. The coordinates are always translated to the units required for the full resolution of your graphic device.