Sign in to follow this  
Followers 0
continyu

Color codes to use in GDI+?

4 posts in this topic

Hi,

I'm sorry if this is a stupid question. But i haven't be able to find out what kind of color codes i need to use with GDI+ ?

is says ARGB in help file. but i was only be able to use the one provided in help file. i'm trying with other hex color codes like 0xFFFFFF but text doesn't show at all(i'm using it on drawstrinex func.)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

As you already said correctly use ARGB format not RGB!

Eg. blue is 0xFF0000FF, green = 0xFF00FF00, red = 0xFFFF0000, black = 0xFF000000, white = 0xFFFFFFFF.

As you can see you have to set the alpha channel to 0xFF to get an opaque color.

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

A = Alpha

R = Red

G = Green

B = Blue

White color = 0xFFFFFFFF

post your code maybe thew error is in something else

Share this post


Link to post
Share on other sites

Thanks both of you. no need to post code, i was working on given example with help file. and it's working expectedly right now!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0