The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ConvertPixelToScale


Unit:SDL_scale
Class:TScale
Declaration:function ConvertPixelToScale (PixelCoord: integer): double;

The method ConvertPixelToScale transforms the position PixelCoord (in pixels measured from the upper left corner of the control) into the correponding value represented by the scale. The returned value is not limited to the boundaries of the scale. The pixel coordinate depends on the direction of the scale - for horizontal scales the pixel coordinate is from left to right, for vertical scales the pixel coordinate is from top to bottom.



Last Update: 2023-Dec-13