本文介绍了有没有CMYK图形库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找具有CMYK支持(JPG或TIF)的图形库.我必须先读取一个大图像文件,再读取一个小图像文件,然后再写第二个.输出也必须是CMYK(不进行任何CMYK-> RGB转换).有吗(C#/C ++/Java或其他)
I'm looking for graphics library with CMYK support(JPG or TIF). I have to read one big image file and one small, then write second on first. Output have to be also CMYK(without any CMYK->RGB conversion). There are any? (C#/C++/Java or somthing else)
推荐答案
(免责声明,我为Atalasoft工作) Atalasoft dotImage 将以CMYK格式读写图像,并在CMYK空间中执行叠加操作.
(Disclaimer, I work for Atalasoft)Atalasoft dotImage will read and write images in as CMYK as well as perform overlay operations in CMYK space.
您需要执行的代码是:
public void OverlayCMYKOnCMYK(Stream bottomStm, Stream topStm, Point location, Steam outStm)
{
using (AtalaImage bottom = new AtalaImage(bottomStm, null), top = new AtalaImage(topStm, null)) {
// might want to check that both bottom and top have the same PixelFormat
// OverlayCommand will silently do conversions if they don't match.
OverlayCommand overlay = new OverlayCommand(top, location);
overlay.Apply(bottom);
bottom.Save(outStm, new TiffEncoder(), null);
}
}
这篇关于有没有CMYK图形库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!