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
 Pb with resizing a TIEPolylineLayer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

CIDER

France
5 Posts

Posted - Sep 18 2019 :  12:33:06  Show Profile  Reply
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

xequte

38613 Posts

Posted - Sep 18 2019 :  17:10:04  Show Profile  Reply
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
Go to Top of Page

CIDER

France
5 Posts

Posted - Sep 18 2019 :  20:12:48  Show Profile  Reply
Hi Nigel

I use version 8.7.0

Christophe
Go to Top of Page

xequte

38613 Posts

Posted - Sep 19 2019 :  17:19:16  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: