ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIEPolyLIneLayer Points coordinates
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

kowal

Poland
38 Posts

Posted - Jun 22 2023 :  13:52:05  Show Profile  Reply
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

Posted - Jun 23 2023 :  01:34:47  Show Profile  Reply
Hi

You cannot set the base permanently, just read and write it in your preferred type.

e.g. using: http://www.imageen.com/help/TIEPolylineLayer.GetPointEx.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

kowal

Poland
38 Posts

Posted - Jun 23 2023 :  05:32:34  Show Profile  Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: