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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIEPolyLIneLayer Points coordinates

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
kowal 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

2   L A T E S T    R E P L I E S    (Newest First)
kowal 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.
xequte Posted - Jun 23 2023 : 01:34:47
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