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
 Polyline points issue

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
phil-obid Posted - Apr 21 2020 : 04:49:38
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
2   L A T E S T    R E P L I E S    (Newest First)
phil-obid Posted - Apr 22 2020 : 02:36:05
Hi Nigel,

thanks for the quick reply! I sent you an email.
xequte Posted - Apr 21 2020 : 19:19:39
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