Crop image in c#

后端 未结 4 1456
梦如初夏
梦如初夏 2021-01-19 07:11

I have a image that I want to crop it when I press a button on the form. I have the following code that is run when the button is pressed, but it doesn\'t do anything to the

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-19 07:25

    You can use the Bitmap class' Clone method (http://msdn.microsoft.com/en-us/library/ms141944.aspx) to get a subrectangle of a target Bitmap.

提交回复
热议问题