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
 How to change Value of color?

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
stkwon Posted - Nov 02 2018 : 11:40:46





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?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 02 2018 : 16:16:56
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