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

ettienned

South Africa
12 Posts

Posted - Mar 10 2017 :  23:47:48  Show Profile  Reply
Hi

I am looking for an example oh how to pass a colour to the getdominantcolor function.

I have tried packed record and just clwhite but always returns with parameters must be formal

regards
ettienne

xequte

39111 Posts

Posted - Mar 11 2017 :  20:03:05  Show Profile  Reply
Hi Etienne

As follows:

var
  cl: TRGB;
begin
  Percentage := ImageEnView.Proc.GetDominantColor( cl );
  If Percentage = 100 then
    ShowMessage( 'the image is blank!' )
  else
    pnlDominantColor.Color := TRGB2TColor( cl );
end;


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

ettienned

South Africa
12 Posts

Posted - Mar 11 2017 :  22:54:36  Show Profile  Reply
hi Nigel

Thanks for the prompt reply


regards

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