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
 How to change Value of color?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

stkwon

20 Posts

Posted - Nov 02 2018 :  11:40:46  Show Profile  Reply





i want use this color on ShapeLayer

original RGB values are R - 174, G - 94, B - 255

RGB integer is 11427583

RGB Hex is AE5EFF

so, i coded like this.




and this is result



i wrote $AE5EFF color and 11427583 RGB values.

but. different color after display..

i wrote color value 16735918. then i can see original color.

what is different ?? that RGB value (AE5EFF and 11427583) is wrong color ?

how can i get 16735918 color value?

xequte

38305 Posts

Posted - Nov 02 2018 :  16:16:56  Show Profile  Reply
Hi

You are not setting a Delphi color correctly. The order is BGR and you also need a hightest-order byte of two.

http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Colors_in_the_VCL

You can just use:

https://www.imageen.com/help/RGB2TColor.html

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