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
 Dominant color of selection

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
spetric Posted - Mar 16 2015 : 14:23:57
Hi,

Is it possible to get dominant color of selection?


TIA,
SIniša
5   L A T E S T    R E P L I E S    (Newest First)
spetric Posted - Mar 17 2015 : 14:40:02
Thanks Klaus,
this trick has done the job.

Siniša
klausdoege Posted - Mar 17 2015 : 11:06:33
try this:
ImageEnView1.LayersCreateFromSelection;
ImageEnView1.Proc.GetDominantColor;
ImageEnView1.LayersRemove(ImageEnView1.LayersCurrent);


Klaus
www.klausdoege.de
spetric Posted - Mar 16 2015 : 18:04:33
GetDominantColor method returns always dominant color of complete image.
wesleybobato Posted - Mar 16 2015 : 14:40:16
ImageEnView1.Proc.GetDominantColor;
wesleybobato Posted - Mar 16 2015 : 14:37:09
ImageEnView1.Proc.CalcAverageRGB( 100 );