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

spetric

Croatia
308 Posts

Posted - Mar 16 2015 :  14:23:57  Show Profile  Reply
Hi,

Is it possible to get dominant color of selection?


TIA,
SIniša

wesleybobato

Brazil
367 Posts

Posted - Mar 16 2015 :  14:37:09  Show Profile  Reply
ImageEnView1.Proc.CalcAverageRGB( 100 );
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Mar 16 2015 :  14:40:16  Show Profile  Reply
ImageEnView1.Proc.GetDominantColor;
Go to Top of Page

spetric

Croatia
308 Posts

Posted - Mar 16 2015 :  18:04:33  Show Profile  Reply
GetDominantColor method returns always dominant color of complete image.
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Mar 17 2015 :  11:06:33  Show Profile  Reply
try this:
ImageEnView1.LayersCreateFromSelection;
ImageEnView1.Proc.GetDominantColor;
ImageEnView1.LayersRemove(ImageEnView1.LayersCurrent);


Klaus
www.klausdoege.de
Go to Top of Page

spetric

Croatia
308 Posts

Posted - Mar 17 2015 :  14:40:02  Show Profile  Reply
Thanks Klaus,
this trick has done the job.

Siniša
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: