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

bmesser

United Kingdom
224 Posts

Posted - Jan 29 2013 :  03:00:35  Show Profile  Reply
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.

w2m

USA
1990 Posts

Posted - Jan 29 2013 :  15:54:25  Show Profile  Reply
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
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Jan 30 2013 :  10:38:39  Show Profile  Reply
Thanks Bill I've managed that now.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: