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
 selection stats
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

email_toan

USA
25 Posts

Posted - Apr 08 2025 :  11:15:29  Show Profile  Reply
Does anyone know a quick and easy way to get stats on a polygon selection?



I'd like support the Measurement Log feature of photoshop in my solution. I'd like to include several calculation data such as pixel count, area, perimeter, rgb, etc.



Any help would be greatly appreciated.

xequte

38932 Posts

Posted - Apr 08 2025 :  18:54:06  Show Profile  Reply
Hi

You can calculate the selection area and length using:

https://www.imageen.com/help/TImageEnView.CalcSelectionArea.html
https://www.imageen.com/help/TImageEnView.CalcSelectionLen.html

You can calculate the RGB of an area using:

https://www.imageen.com/help/TImageEnProc.CalcAverageRGB.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: