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


Class: TContourPlot
Declaration: [1] procedure DrawToRelPix (dx, dy: integer);
[2] procedure DrawToRelPix (x,y: double; dx, dy: integer);

The method DrawToRelPix comes in two overloaded versions. Version [1] draws a line from the current cursor position (CP, in pixel coordinates) to the point (CP+dx,CP+dy), while version [2] draws this line from the position [x,y].

The length and direction of the line to be drawn is specified by pixel coordinates of the chart window (dx and dy), thus providing a way to draw elements which are independent of the scaling of the chart.

Please note that only lines drawn by the second version can be searched by FindNearestAnnoElem because the starting point [x,y] of the line is stored in the DataContainer.

Hint: In the Light Edition the number of chart elements is restricted to 1000 elements.

Last Update: 2023-Dec-13