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
 GetDominantColor

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
bmesser Posted - Jan 29 2013 : 03:00:35
Hi

A while ago someone pointed me at the
ImageEnView.Proc.GetDominantColor

to detect for testing for an all white or black image. I would like to use this on a an individual layer but realise that I can't call the
Proc.GetDominantColor
on individual layers.

I could load the image within a function using a non-visible ImageEnView component and then use the method
GetDominantColor
, but that wouldn't be efficient because I can have as many as 96 images loaded as layers and each one would need to be loaded and tested by the function after I've loaded them as layers already - is there any way I can use the
PROC.GetDominantColor
method on a layer without doing this?

Bruce.
2   L A T E S T    R E P L I E S    (Newest First)
bmesser Posted - Jan 30 2013 : 10:38:39
Thanks Bill I've managed that now.
w2m Posted - Jan 29 2013 : 15:54:25
What makes you think that GetDominantColor does not work with the current layer? It works for me. The bitmap used is the bitmap in the current layer...

William Miller