Support Board
Date/Time: Sun, 24 Nov 2024 15:56:42 +0000
Post From: How to use GDI to draw text with transparent background?
[2024-05-26 22:43:39] |
User719512 - Posts: 263 |
How to use GDI to draw text with transparent background? Should you be able to specify a NULL background? sc.Graphics.DrawTextAt(msg, x_coordinate, y_coordinate); Also, does the sc.Graphics.SetTextColor support setting an Alpha value? // nothing like this seems to have an effect // sc.Graphics.ResetBackgroundColor(); sc.Graphics.ResetBackgroundMode(); n_ACSIL::s_GraphicsPen nullPen; nullPen.m_PenStyle = n_ACSIL::s_GraphicsPen::e_PenStyle::PEN_STYLE_NULL; sc.Graphics.SetPen(nullPen); n_ACSIL::s_GraphicsBrush nullBrush; nullBrush.m_BrushType = n_ACSIL::s_GraphicsBrush::BRUSH_TYPE_STOCK; nullBrush.m_BrushStockType = NULL_BRUSH; sc.Graphics.SetBrush(nullBrush); GraphicsColor_Foreground.Color.RGB.Alpha = 128; GraphicsColor_Foreground.Color.RGB.Red = 0; GraphicsColor_Foreground.Color.RGB.Green = 128; GraphicsColor_Foreground.Color.RGB.Blue = 0; sc.Graphics.SetTextColor(GraphicsColor_Foreground); |