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



ConvertToPixelCoords


Unit:SDL_meter
Class:TMeter
Declaration:procedure ConvertToPixelCoords (value, pctradius: double; var X, Y: integer);

The method ConvertToPixelCoords transforms the value of the meter (parameter value) and a percentage of the scale radius (parameter pctradius) into the pixel coordinates X and Y. This method can be used to draw user-defined graphics or text on the TMeter canvas (the canvas can be accessed using the events OnMeterRendered, OnBeforeDrawNeedle, or OnBeforeDrawScaleLabel).



Last Update: 2012-Oct-20