What are the hard bounds for drawing coordinates in GDI+?

前端 未结 3 1042
谎友^
谎友^ 2020-12-03 08:30

I am rendering an interpolation curve thusly:

e.Graphics.DrawLines(new Pen(Color.Red), _interpolationPoints.ToArray());

which sometimes thr

3条回答
  •  生来不讨喜
    2020-12-03 09:19

    I've not heard of specific limits for DrawLines() or any other GDI drawing function. Why don't you use e.ClipRectangle as a constraint?

    Drawing points outside the visible region is not needed anyway. Just make sure that only lines are discarded that have both points outside.

提交回复
热议问题