Home
Features
Demos
Store
Forum
Support
ImageEn Forum
Profile
Join
Active Topics
Forum FAQ
Search
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
Topic
andyhill
Australia
133 Posts
Posted - Aug 24 2022 : 20:23:32
for shp:= Low(TIEShape) to High(TIEShape) do begin
for i:= 0 to TIEEllipse(shp). := Low to High do begin
end;
end;
Andy
xequte
38610 Posts
Posted - Aug 24 2022 : 21:41:25
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
andyhill
Australia
133 Posts
Posted - Aug 24 2022 : 21:51:02
OK, will use TIEPolyline layer
Andy
Topic
New Topic
Reply to Topic
Jump To:
Select Forum
ImageEn Library for Delphi, C++ and .Net
ImageEn and IEvolution Support Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page