Author |
Topic |
|
kowal
Poland
38 Posts |
Posted - Jun 22 2023 : 13:52:05
|
Hi, I add the IEPolyLineLayer to the IEImageView using TIEPointBase = iepbBitmap parameter:
TIEPolylineLayer(iPOR.CurrentLayer).SetPoints(shapePoints, false , iepbBitmap);
the values of shapePoints are
(118,48) (518,597) - 2 points the pixel locations on the bitmap
then I edit the layer - I add 1 point, it is located near the middle of the line and I read the new coordinates in the layer Points property the values are
(4,3) (560,562) (996,997) - 3 points
I think they are coordinates recalculated for TIEPointBase = iepbRange but I want to have the TIEPointBase = iepbBitmap
How can I set the constant TIEPointBase for IEPolyLineLayer, which will not change while editing line?
S.Kowalski
|
|
xequte
38690 Posts |
|
kowal
Poland
38 Posts |
Posted - Jun 23 2023 : 05:32:34
|
Hi, I was expecting something like this but couldn't find it. Now I have the code: x := Round( plLayer.GetPointEx( i, iepbBitmap).x ); y := Round( plLayer.GetPointEx( i, iepbBitmap).y ); and it works OK thanks! S.
|
|
|
|
Topic |
|
|
|