How to crop an image using C#?

后端 未结 14 1017
忘掉有多难
忘掉有多难 2020-11-22 05:16

How can I write an application that will crop images in C#?

14条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 05:59

    If you're using AForge.NET:

    using(var croppedBitmap = new Crop(new Rectangle(10, 10, 10, 10)).Apply(bitmap))
    {
        // ...
    }
    

提交回复
热议问题