continyu Posted September 21, 2011 Share Posted September 21, 2011 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 More sharing options...
UEZ Posted September 21, 2011 Share Posted September 21, 2011 (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 September 21, 2011 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 More sharing options...
monoscout999 Posted September 21, 2011 Share Posted September 21, 2011 A = Alpha R = Red G = Green B = Blue White color = 0xFFFFFFFF post your code maybe thew error is in something else Link to comment Share on other sites More sharing options...
continyu Posted September 21, 2011 Author Share Posted September 21, 2011 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now