Color Image Quantization in .NET

前端 未结 3 1055
南方客
南方客 2021-01-18 20:48

I want to reduce the number of unique colors of a bitmap in c#.

The reason I want to do this is that an image which is initially created with three color but due to

3条回答
  •  滥情空心
    2021-01-18 21:07

    Check out nQuant at http://nquant.codeplex.com. This yields much higher quality than the code in the MSDN article that Magnus references. It also takes the Alpha layer into consideration while the msdn article only evaluates RGB. Source code is available and there is an accompanying blog post that discusses the code and algorithm in detail.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题