如何在Java中将RGB图像转换为CMYK,反之亦然? [英] how can I convert an RGB image to CMYK and vice versa in Java?

查看:792
本文介绍了如何在Java中将RGB图像转换为CMYK,反之亦然?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的网络应用程序允许用户以不同的格式(bmp,png和jpeg)下载动态生成的图像。我们的一些用户下载图像进行打印,因此我们希望允许他们在RGB或CMYK之间进行选择。
有没有办法在创建RenderedImage / BufferedImage时指定颜色模型?如果没有,默认颜色模型是什么?如何将其更改为另一个?
欢迎使用以下代码段:)

our web app let users download dynamically generated images in different formats (bmp, png and jpeg). Some of our users download the images for printing, thus we would like to allow them to choose between RGB or CMYK. Is there a way to specify the color model when creating a RenderedImage/BufferedImage? If not, what is the default color model and how can I change it to another? Code snippets are welcome :)

谢谢,

Olivier。

推荐答案

某些图像格式不允许使用CMYK色彩空间(PNG,JPEG / JFIF,GIF ...),而普通用户则需要以RGB格式打印。

Some image formats doesn't allow CMYK color spaces (PNG, JPEG/JFIF, GIF...) and for normal users printing in RGB is desirable.

您需要向客户提供CMYK图像的原因是什么?

What are the reasons you need to provide CMYK images to your customers?

这篇关于如何在Java中将RGB图像转换为CMYK,反之亦然?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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