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
 How does one walk all Ellipse shapes on current layer and get Center Points ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

andyhill

Australia
133 Posts

Posted - Aug 24 2022 :  20:23:32  Show Profile  Reply
for shp:= Low(TIEShape) to High(TIEShape) do begin
for i:= 0 to TIEEllipse(shp). := Low to High do begin

end;
end;


Andy

xequte

38180 Posts

Posted - Aug 24 2022 :  21:41:25  Show Profile  Reply
Hi Andy

There is not an easy way to do that with a TIEShapeLayer.

If you create a TIEPolyline layer and fill its points using a TIEShape:

https://www.imageen.com/help/TIEPolylineLayer.SetPoints.html

Then you can get the centroid using:

https://www.imageen.com/help/TIEPolylineLayer.CalculateCentroid.html


Otherwise you can calculate it yourself with:

IEGenerateShapePoints(); (in iexCanvasUtils.pas)
and
IECalcPolygonCentroid(); (in hyieutils.pas)

But that is unsupported.


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

andyhill

Australia
133 Posts

Posted - Aug 24 2022 :  21:51:02  Show Profile  Reply
OK, will use TIEPolyline layer

Andy
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: