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



ValueToPixel


Unit: SDL_colorscale
Class: TColorScale
Declaration: function ValueToPixel (v: double): integer;

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