Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / Text Color

Author
Message
Drilikath
11
Years of Service
User Offline
Joined: 18th Jun 2012
Location: United States
Posted: 28th Jun 2012 04:27
I have code for text and when i set the color it stays white no matter what i try.

Color normalcolor = System.Drawing.ColorTranslator.FromHtml("#666666");

blankButton.Paste(xpos, ypos);
DarkGDK.Text.Font = "space age";
DarkGDK.Text.Size = 20;
DarkGDK.Text.SetColor(normalcolor);
DarkGDK.Text.CenterText(xpos + 175, ypos + 15, Name);
Drilikath
11
Years of Service
User Offline
Joined: 18th Jun 2012
Location: United States
Posted: 28th Jun 2012 21:20
found out the DarkGDK.Text.SetColor(normalcolor); does not work happened to stumble on the answer to use basic2d.bitmap.Ink(forcolor,backcolor);

Login to post a reply

Server time is: 2024-04-19 04:17:10
Your offset time is: 2024-04-19 04:17:10