Support Board
Date/Time: Thu, 08 May 2025 04:58:18 +0000
Post From: Discrepancies in GDI Drawings Output with OpenGL Enabled/Disabled in Sierra Chart
[2024-11-25 17:06:26] |
LudaTrades - Posts: 30 |
The problem appears to be with NULL_BRUSH. A workaround for drawing a rectangle outline with openGL disabled is: n_ACSIL::s_GraphicsPen OutlinePen;
OutlinePen.m_PenColor.SetColorValue(COLOR_BLUE); OutlinePen.m_PenStyle = n_ACSIL::s_GraphicsPen::e_PenStyle::PEN_STYLE_SOLID; OutlinePen.m_Width = 5; sc.Graphics.SetPen(OutlinePen); int left = sc.StudyRegionLeftCoordinate + 300; int top = sc.StudyRegionTopCoordinate + 300; int right = sc.StudyRegionLeftCoordinate + 500; int bottom = sc.StudyRegionTopCoordinate + 500; sc.Graphics.MoveTo(left, top); sc.Graphics.LineTo(right, top); sc.Graphics.LineTo(right, bottom); sc.Graphics.LineTo(left, bottom); sc.Graphics.LineTo(left, top); |