Adjust the contrast of an image in C# efficiently

前端 未结 3 1905
轮回少年
轮回少年 2020-12-01 10:12

Is there an efficient way of adjusting the contrast of an image in C#?

I\'ve seen this article which advocates doing a per-pixel operation. Not quick.

I\'m u

3条回答
  •  失恋的感觉
    2020-12-01 10:24

    I'm a bit late, but use a color matrix implementation as these will be optimised for such transformations and is much easier than manipulating the pixels yourself: http://www.geekpedia.com/tutorial202_Using-the-ColorMatrix-in-Csharp.html

提交回复
热议问题