C# Windows form Control to Image?

后端 未结 7 1274
遇见更好的自我
遇见更好的自我 2020-12-18 08:29

I am trying to create an image of a Panel and save it to a folder. The problem is the panel has scrollbars and the image generated is only for the visible portion of the Pan

7条回答
  •  悲&欢浪女
    2020-12-18 09:17

    Consider temporarily increasing the panel's size, calling p.Layout(), then p.DrawToImage()

提交回复
热议问题