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
 Pb with resizing a TIEPolylineLayer

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
CIDER Posted - Sep 18 2019 : 12:33:06
Hi,
I encounter a problem when resizing a TIEPolylineLayer.
It works well with the lower right corner but it distord the polyline with the other three corners.
It can be reproduced with the Layers_AllTypes demo :
- add a polyline layer
- Press "Set to Star"
- reduce the size of the layer with the upper left corner : the Star goes wrong...

If you modify the btnAddClick function like this in Layers_AllTypes demo :

procedure Tfmain.btnAddClick(Sender: TObject);
begin
  ImageEnView1.LayersAdd( TIELayerKind( cmbAddLayer.ItemIndex ));
  if ImageEnView1.CurrentLayer.Kind = ielkImage then
    TIEImageLayer( ImageEnView1.CurrentLayer ).ExecuteOpenDialog();

  ImageEnView1.CurrentLayer.Width := 300;
  ImageEnView1.CurrentLayer.Height := 300;

  if ImageEnView1.CurrentLayer.Kind = ielkPolyline then
  begin
       TIEPolylineLayer( ImageEnView1.CurrentLayer ).SetPoints( [ Point(0, 0), Point(90, 221), Point(110, 150), Point(214, 253)
                                                                , Point(253, 214), Point(150, 110), Point(221, 90) ], True );
       TIEPolylineLayer( ImageEnView1.CurrentLayer ).AspectRatioLocked := True;
  end;

  RefreshControls();
end;

then add a polyline layer and reduce the size of the layer with the upper left corner to something like 50x50, you can't miss the problem.

Best regards
Christophe
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 19 2019 : 17:19:16
Hi Christophe

Hmmm, we'll need to release 8.7.1 soon to provide a public fix for this.

Please email me for the updated source.

Nigel
Xequte Software
www.imageen.com
CIDER Posted - Sep 18 2019 : 20:12:48
Hi Nigel

I use version 8.7.0

Christophe
xequte Posted - Sep 18 2019 : 17:10:04
Hi Christophe

Please confirm what version you are using. We made a number of changes to Polyline point handling in 8.7.0

Nigel
Xequte Software
www.imageen.com