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
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
 Printer Friendly
Author Previous Topic Topic Next Topic  


580 Posts

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

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.


Yogi Yang


5056 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.

Xequte Software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: