Jump to content

Color codes to use in GDI+?


continyu
 Share

Recommended Posts

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

Link to comment
Share on other sites

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...