减色(在Java中) [英] Color reduction (in Java)

查看:127
本文介绍了减色(在Java中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到一种方法来拍摄JPEG(或GIF / PNG)图片,并减少颜色的数量。 20.有人可能推荐一些图书馆或其他参考?欢迎使用其他语言的源代码。

I would like to find a way to take JPEG (or GIF/PNG) images and reduce the amount of colors to e.g. 20. Could someone recommend some library or other reference? Also source codes in other languages are welcome.

推荐答案

查看 Java高级映像API 。在该API中实现了一些算法来进行颜色还原。

Take a look at the Java Advanced Imaging API. There are a number of algorithms implemented in that API for doing color reduction.

这篇关于减色(在Java中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆