我正在寻找具有CMYK支持(JPG或TIF)的图形库。我必须读取一个大的图像文件和一个小的图像文件,然后在第一个上写第二个。输出也必须是CMYK(没有任何CMYK->RGB转换)。有吗?(C#/C++/Java或其他什么)
发布于 2010-10-28 03:26:15
(免责声明,我在Atalasoft工作) Atalasoft dotImage将在CMYK中读取和写入图像,以及在CMYK空间中执行覆盖操作。
您需要执行此操作的代码为:
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);
}
}https://stackoverflow.com/questions/3866579
复制相似问题