有没有CMYK图形库?

发布于 2024-09-25 21:16:28 字数 133 浏览 8 评论 0原文

我正在寻找支持 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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

羁绊已千年 2024-10-02 21:16:28

(免责声明,我在 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);
   }
}

(Disclaimer, I work for Atalasoft)
Atalasoft dotImage will read and write images in as CMYK as well as perform overlay operations in CMYK space.

the code you would need to do this is:

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);
   }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文