首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >有没有CMYK图形库?

有没有CMYK图形库?
EN

Stack Overflow用户
提问于 2010-10-06 02:28:36
回答 1查看 1.6K关注 0票数 3

我正在寻找具有CMYK支持(JPG或TIF)的图形库。我必须读取一个大的图像文件和一个小的图像文件,然后在第一个上写第二个。输出也必须是CMYK(没有任何CMYK->RGB转换)。有吗?(C#/C++/Java或其他什么)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-10-28 03:26:15

(免责声明,我在Atalasoft工作) Atalasoft dotImage将在CMYK中读取和写入图像,以及在CMYK空间中执行覆盖操作。

您需要执行此操作的代码为:

代码语言:javascript
复制
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);
   }
}
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3866579

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档