How do I save a Winforms panel's drawing content to a file?

前端 未结 3 507
一向
一向 2020-12-06 23:40

I made a paint program, and the drawing content (from System.Drawing) is drawn on the panel. I attempted this method to do a simple save for now, and I only get a blank imag

3条回答
  •  独厮守ぢ
    2020-12-07 00:29

    I would skip using the panel it's not designed for graphics as much as the ImageBox is - move on to that and then you can save the contents easily.

    UPDATE PictureBox. I haven't used WinForms for a while :D

提交回复
热议问题