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 position
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

c.basso

Italy
28 Posts

Posted - Sep 05 2019 :  02:54:44  Show Profile  Reply
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

xequte

4714 Posts

Posted - Sep 07 2019 :  19:52:40  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: