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



M2R


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

The routine M2R allows the transformation of integer screen (pixel) coordinates into the plot coordinates. The parameters xin and yin specify the pixel coordinates of the plot window (not the data area) - therefore the properties MarginLeft and MarginTop should be taken into account when using M2R. The variable parameters xout and yout return the plot coordinates of the point [xin, yin].

Hint: Normally, the user will not utilize this method at all. M2R has been declared public in order to give direct access to the chart area for special purposes.



Last Update: 2023-Dec-13