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


Unit: SDL_rchart
Class: TContourPlot
Declaration: procedure R2M (xin,yin: double; var xout,yout: longint);

The routine R2M allows the transformation of plot coordinates into integer screen (pixel) coordinates. The parameters xin and yin specify the real-world coordinates of the plot. The variable parameters xout and yout contain the pixel coordinates of the point [xin, yin]. Note, that the returned coordinates are pixel coordinates of the component window (not the data area) - therefore the properties MarginLeft and MarginTop should be taken into account when using R2M.

Hint: Normally, the user will not utilize this method at all. R2M has been declared public in order to give direct access to the chart area for special purposes (see the event OnDataRendered for an example).

Last Update: 2023-Dec-13