1
Answer

drawing.grapics ResetTransform hangs locks up

Eric

Eric

16y
1.8k
1

I have an overload on the OnPaint event which is doing:

g.TranslateTransform(m_yAxisLabelLocation.X, m_yAxisLabelLocation.Y); // + g.MeasureString(m_yAxisLabel, m_yAxisLabelFont).Height);

g.RotateTransform(270);

g.DrawString(m_yAxisLabel, m_yAxisLabelFont, Brushes.Black, 0, 0);

g.ResetTransform();

 

After running for a while my application seems to hand / lockup and when I look at where it is stopped it is on the ResetTransform function.  I am completely stumped.  Has anyone seen this problem or have any suggestions?

 

Eric

Answers (1)