private void DrawOverlay(Graphics gp) { if (m_xOverlay != null) { XRegion xRegion = (XRegion)m_xOverlay.First(); for (int n = 0; n < m_xOverlay.Count; n++) { if (xRegion != null) { xRegion.Draw(gp, m_pOrigin.X, m_pOrigin.Y, m_fZ, m_fZ); xRegion = (XRegion)m_xOverlay.Next(); } } } }
private void StaticStatic(Graphics gp) { if (m_xStatic != null) { XRegion xRegion = (XRegion)m_xStatic.First(); for (int n = 0; n < m_xStatic.Count; n++) { if (xRegion != null) { xRegion.Draw(gp, m_pOrigin.X, m_pOrigin.Y, m_fZ, m_fZ); xRegion = (XRegion)m_xStatic.Next(); } } } }
protected override void OnPaint(PaintEventArgs pe) { if (m_Bitmap != null && m_Bitmap != null) { try { Graphics mGp = Graphics.FromImage(m_Back); if (mGp != null) { DrawImage(mGp, m_Bitmap); if (m_bMouseMove == false) { //DrawFillOverlay(mGp, m_nTransparency, m_pOrigin.X, m_pOrigin.Y, m_fZ); } DrawOverlay(mGp); if (m_xSelectRegion.ControlSelect == REGION_CONTROL_STYLES.BR) { m_xSelectRegion.Draw(mGp, m_pOrigin.X, m_pOrigin.Y, m_fZ, m_fZ); } if (ChangeDraw != null) { ChangeDraw(mGp); } Graphics Gp = pe.Graphics; if (Gp != null) { Gp.DrawImage(m_Back, 0, 0); mGp.Dispose(); } //m_bRefreshImage = false; //m_bRefresh = false; } else { if (mGp != null) { Refresh(); } } } catch (System.Exception e) { string sMsg = e.ToString(); } } }