Dok
2006-02-16 01:10:27 UTC
I am converting some code from GDI to GDI+ as GDI+ supports alpha.
However I have ran into an issue with DrawSting in GDI+.
In my old code wth GDI I used 'SetBkColor' if I wanted the text to have a
background colour applied to it.
Is there a way to do something like this in GDI+ with DrawSting?
I first though of just doing a clear in the rect that the text is to go in,
but after quick testng I realised this would not work. Because the GDI
Drawtext only draws that background where the text goes ie. if you use
DT_BOTTOM. Where the clear would work on the whole rect which I am not after.
Thanks in advance,
Adam
However I have ran into an issue with DrawSting in GDI+.
In my old code wth GDI I used 'SetBkColor' if I wanted the text to have a
background colour applied to it.
Is there a way to do something like this in GDI+ with DrawSting?
I first though of just doing a clear in the rect that the text is to go in,
but after quick testng I realised this would not work. Because the GDI
Drawtext only draws that background where the text goes ie. if you use
DT_BOTTOM. Where the clear would work on the whole rect which I am not after.
Thanks in advance,
Adam