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 position

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
c.basso Posted - Sep 05 2019 : 02:54:44
Hi,
I have a strange behavior about a Layer position.

Example: I create a TIEPolylineLayer, a cross:

    with ImageEnView do
      begin
        vCrossSize:= 50;
        LayersAdd(ielkPolyline);
        TIEPolylineLayer(CurrentLayer).ClearAllPoints;
        TIEPolylineLayer(CurrentLayer).AddPoint(0, Round(vCrossSize / 2), iepbBitmap);
        TIEPolylineLayer(CurrentLayer).AddPoint(Round(vCrossSize / 2), Round(vCrossSize / 2), iepbBitmap);
        TIEPolylineLayer(CurrentLayer).AddPoint(Round(vCrossSize / 2), 0, iepbBitmap);
        TIEPolylineLayer(CurrentLayer).AddPoint(Round(vCrossSize / 2), Round(vCrossSize / 2), iepbBitmap);
        TIEPolylineLayer(CurrentLayer).AddPoint(vCrossSize, Round(vCrossSize / 2), iepbBitmap);
        TIEPolylineLayer(CurrentLayer).AddPoint(Round(vCrossSize / 2), Round(vCrossSize / 2), iepbBitmap);
        TIEPolylineLayer(CurrentLayer).AddPoint(Round(vCrossSize / 2), vCrossSize, iepbBitmap);
        CurrentLayer.PosX:= 40;
        CurrentLayer.PosY:= 40;
        Update;
      end;

The result is a cross, but positioned at X=40, Y=15

If I run Update method first and after I set position, like this:
...
Update;
CurrentLayer.PosX:= 40;
CurrentLayer.PosY:= 40;

My layer is positioned correctly.
I am doing something wrong or it's a normal behavior?

Thanks

Claudio
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 07 2019 : 19:52:40
Hi Claudio

I believe that issue has already been resolved. It works correctly in the current beta (8.7.0, which will be released in the next week or so).

Nigel
Xequte Software
www.imageen.com