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
 Tell an Image is all black after bad video capture
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

john_siggy@yahoo.com

USA
158 Posts

Posted - Nov 27 2016 :  14:22:08  Show Profile  Reply
After an unsuccessful video capture the image returned is all black. Is there a way to tell if an image is all black (with valid width and height)? Can't find where the width and height are assigned. Call to ImageEnMView1.AppendImage(640, 480) creates a black image of H:176 x W:144. Any help would be appreciated

xequte

38615 Posts

Posted - Nov 28 2016 :  04:01:23  Show Profile  Reply
Hi

Please see:

http://www.imageen.com/help/TImageEnProc.GetDominantColor.html

Percentage := ImageEnView.Proc.GetDominantColor(cl);
If Percentage = 100 then
   ShowMessage('the image is blank!');


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

john_siggy@yahoo.com

USA
158 Posts

Posted - Nov 28 2016 :  13:52:44  Show Profile  Reply
Thanks, that worked well...

Regards,

John
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: