private void control_Paint(object sender, PaintEventArgs e) { Matrix transform = new Matrix(); if (m_transformAdapter != null) { transform = m_transformAdapter.Transform; } RectangleF clientRect = AdaptedControl.ClientRectangle; if (m_canvasAdapter != null) { clientRect = m_canvasAdapter.WindowBounds; } RectangleF canvasRect = GdiUtil.InverseTransform(transform, clientRect); if (m_horizontalVisible) { ChartUtil.DrawHorizontalScale( transform, canvasRect, false, m_verticalTickSpacing, 0, m_theme.OutlinePen, m_theme.Font, m_theme.TextBrush, e.Graphics); } if (m_verticalVisible) { ChartUtil.DrawVerticalScale( transform, canvasRect, true, m_horizontalTickSpacing, 0, m_theme.OutlinePen, m_theme.Font, m_theme.TextBrush, e.Graphics); } }