ImageEn, unit iexLayers

TIELineLayer.Points

TIELineLayer.Points


Declaration

property Points[index: integer]: TPoint;


Description

Gets one of the two points of a line. The range will always be 0 - 1.
Each point of the angle is represented by an x and y value in the range 0 to 1000 (iepbRange). Where (0, 0) is the top-left pixel of the layer and (1000, 1000) is the bottom-right.

Notes:
- This is the same as LinePoint 1 and 2.
- It is also the same as calling GetPointEx( index, iepbRange );
- Use GetPointEx to return values in terms of bitmap or screen.


Examples

with TIELineLayer( ImageEnView1.CurrentLayer ) do
  s := Format('(%d, %d) (%d, %d)', [ Points[0].X, Points[0]).Y, Points[1].X, Points[1]).Y]);
ShowMessage(s);


See Also

- LinePoint1
- LinePoint2
- LineLength
- GetPointEx
- SetPoints