How to crop huge image

前端 未结 5 2045
清酒与你
清酒与你 2020-12-10 07:39

I need to process large images (20,000x20,000pixels) in C#. Opening these images directly isn\'t the way to go because of memory limitations, but what I want to do is split

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-10 08:11

    I'd do it with ImageMagick. There is a pretty solid .NET API available, and it is typically the best way to do image processing like this.

    Look under .NET, part of the way down the page.

    http://www.imagemagick.org/script/api.php

    Here is the info on how the crop stuff in ImageMagick works, for the command line version.

    http://www.imagemagick.org/Usage/crop/#crop

提交回复
热议问题