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

pierrotsc

USA
497 Posts

Posted - Apr 14 2018 :  17:41:46  Show Profile  Reply
I am trying to show the K% value of points while moving and although the image in photoshop does display the correct one, it does not in my program. The RGB values match so i assume it is my formula. I am using that:
TestLum := FormatFloat('##0', (255 - GetRValue(AColor)) / 2.55);

Acolor is a Tcolor variable. the image isin grayscale so theR,G and B values are the same.

Advice
Pierre

xequte

38180 Posts

Posted - Apr 15 2018 :  19:14:02  Show Profile  Reply
Hi Pierre

You can use SetInteractionHint to display a hover hint at a mouse position:

https://www.imageen.com/help/TImageEnView.SetInteractionHint.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Apr 16 2018 :  16:46:02  Show Profile  Reply
Thanks, I think i got my formula working and appreciate the link for this command I was unaware off. Really cool
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: