VIDEO.UnScaleY

Previous  Next

 

coord = UnScaleY( yCoord  AS REAL,

                  bScaled AS INTEGER ) AS REAL

 


 

"Unscales" a world coordinate system Y coordinate into video coordinate.  If bScaled is FALSE, then the coordinate is assumed to be in pixels and the returned coordinate will be in video coordinate system.

 

Note that the video coordinate system has the origin in upper left coorner as opposed to the measurement coordinate system that has it in lower right corner.

 

Example:

 

PRINT "Scaled Coord 10, 10    = ";VIDEO.ScaleX( nControl, 10 );", ";VIDEO.ScaleY( nControl, 10 ),

PRINT "UnScaled Coord 10, 470 = ";VIDEO.UnScaleX( nControl, 10 );", ";VIDEO.UnScaleY( nControl, 470 ),