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
 Ellipse Box calculate perimeter mm2

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
wealsh Posted - Nov 17 2018 : 10:34:17
How to calculate?
like this:

7   L A T E S T    R E P L I E S    (Newest First)
wealsh Posted - Nov 19 2018 : 02:39:16
thanks~~
xequte Posted - Nov 19 2018 : 02:07:55
Area := PI * W * H / 4;
perim := 2 * PI * SqRt(( Sqr( w / 2 ) + Sqr( h / 2 )) / 2 );

Nigel
Xequte Software
www.imageen.com
wealsh Posted - Nov 19 2018 : 01:49:58
https://www.mathsisfun.com/geometry/ellipse-perimeter.html
https://stackoverflow.com/questions/8433443/modify-a-formula-from-calculating-around-a-circle-to-around-an-oval

delphi can do that ?
wealsh Posted - Nov 18 2018 : 21:31:30
ImageEnVect1.GetObjRect(hobj, r);

if (ImageEnVect1.ObjKind[hobj] = iekELLIPSE) then
begin
w:= Trunc((r.Right - r.Left));
h:= Trunc((r.Bottom - r.Top));
end
xequte Posted - Nov 18 2018 : 14:11:42
What input values do you have? Ellipse width and height?


Nigel
Xequte Software
www.imageen.com
wealsh Posted - Nov 18 2018 : 02:49:24
hello
I'm sorry, I don't know much English. Look at the picture. This is the oval


xequte Posted - Nov 17 2018 : 17:45:07
Hi

Are fairly close approximation is:

perim := 2 * PI * SqRt(( Sqr( w / 2 ) + Sqr( h / 2 )) / 2 );

Nigel
Xequte Software
www.imageen.com