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
 Calculate inverse color of AverageRGB
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - May 10 2019 :  08:41:52  Show Profile  Reply
Hello,

Is there any function in IE that can calculate inverse of calculated AverageRGB?

I am extracting AverageRGB value of a layer and I need to convert this value to in negative color in short calculate its opposite color so if it the is Yellow we should get Blue.

TIA


Yogi Yang

xequte

38176 Posts

Posted - May 10 2019 :  18:08:02  Show Profile  Reply
Hi Yogi

No, but the AverageRGB code is pretty simple, so just copy the code and create your own InverseAverageRGB method based on it.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: