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
 GetDominantcolour

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
ettienned Posted - Mar 10 2017 : 23:47:48
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
2   L A T E S T    R E P L I E S    (Newest First)
ettienned Posted - Mar 11 2017 : 22:54:36
hi Nigel

Thanks for the prompt reply


regards

ettienne
xequte Posted - Mar 11 2017 : 20:03:05
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