Resizing drawlines on a paint event

后端 未结 2 1131
旧巷少年郎
旧巷少年郎 2021-01-28 03:52

I\'ve seen few questions about this problem, I tried every solution but none of them worked for my case. My code is working; this image shows what happens when I click on Draw b

2条回答
  •  不思量自难忘°
    2021-01-28 04:48

    Graphics.ScaleTransform() is how you can zoom. Try using something like this inside your paint event handler:

    e.Graphics.ScaleTransform(2.0F, 2.0F);
    

提交回复
热议问题