Colors must be written in all caps or expressed as a numeral.
How to set text color in c++ graphics. In this video you will get the idea to change the background color and text color in c and c program using Dev C. This worked for me and it is simple. Just discovered this today 92013.
For VGA its value is from 0 to 15. For changing color of text 2. TextcolorRED To change text color to red textcolorREDBLINK.
Dim drawPoint As New PointF 1500F 1500F Draw string to screen. Then all you have to do is this. EGraphicsDrawString drawString drawFont drawBrush drawPoint End Sub.
In Graphics each color is assigned a number. Use them as follows. Put maxminpValue255zero into pValue put the backgroundColor of the target into tColor change the first item - red - to new value.
The values defined indicates the position of. You will have to pass the name of the color or corresponding value which is shown in the table in the parameter of the function in which color you want to display the character on the screen or print it. Setcolor function in C.
Put pValue into item 1 of tColor set the backgroundColor of the target to tColor end redChannel. Textcolor int color. It may also be a numerical constant identifier eg.