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....



ConvertPixelToValue


Unit:SDL_meter
Class:TMeter
Declaration:function ConvertPixelToValue (XPos, YPos: integer; var MeterValue: double): boolean;

The method ConvertPixelToValue converts the pixel coordinates XPos and YPos into the corresponding meter value. If the position [XPos, YPos] is within the sector spanned by the meter anchor and the scale, the function returns TRUE and the MeterValue parameter contains the corresponding meter value. If the position is outside of the sector, the function returns FALSE and the MeterValue parameter is set to zero.



Last Update: 2012-Oct-20