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
 Polyline points issue
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

phil-obid

2 Posts

Posted - Apr 21 2020 :  04:49:38  Show Profile  Reply
I noticed an issue with polyline points in recent versions of ImageEn.

Here is some sample code to illustrate the problem:

procedure TForm23.FormCreate(Sender: TObject);
var
  plLayer: TIEPolylineLayer;
begin
  ImageEnView1.IEBitmap.Fill(clWhite);

  ImageEnView1.LayersAdd(ielkPolyline, 0, 0, ImageEnView1.Layers[0].Width, ImageEnView1.Layers[0].Height);
  plLayer := TIEPolylineLayer(ImageEnView1.CurrentLayer);
  with plLayer do
  begin
    ClearAllPoints;

    AddPoint( 0, 0 );
    AddPoint( 600, 0 );
    AddPoint( 400, 1000 );
    AddPoint( 0, 1000 );

    FillColor := clBlack;
    PolylineClosed := True;
  end;
end;


Using version 8.6.0 the result is as expected:


This is what I get with version 9.0.0:


Something seems to be off with the scaling of points?

Phil

xequte

39053 Posts

Posted - Apr 21 2020 :  19:19:39  Show Profile  Reply
Hi Phil

Well, it's partly due to a feature (auto-stretching to allow user to specify non-range values), but I've improved our handling of it so that you don't see this kind of unexpected change.

Please email me for an update.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

phil-obid

2 Posts

Posted - Apr 22 2020 :  02:36:05  Show Profile  Reply
Hi Nigel,

thanks for the quick reply! I sent you an email.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: