flip coordinates when drawing to control

前端 未结 5 494
深忆病人
深忆病人 2020-12-06 06:05

I am drawing a graph on a control, but 0,0 is at the top-left hand corner of the control. Is there a way to flip the coordinates so that 0,0 is at the lower left corner of t

5条回答
  •  萌比男神i
    2020-12-06 06:36

    No, but using the Size (or Height) properties of the control, it is easy to calculate flipped coordinates: Just draw to Height-y.

提交回复
热议问题