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
 How does one walk all Ellipse shapes on current layer and get Center Points ?

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
andyhill 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
2   L A T E S T    R E P L I E S    (Newest First)
andyhill Posted - Aug 24 2022 : 21:51:02
OK, will use TIEPolyline layer

Andy
xequte 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