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_scale
Class:TScale
Declaration:function ConvertToPixelCoords (Value: double): integer;

The method ConvertToPixelCoords transforms a value measured in the scale coordinate system (parameter Value) into the corresponding pixel coordinate. The pixel coordinate refers to 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.

Example: This method is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code):scalemeter



Last Update: 2014-Apr-18