Is there any CMYK graphics library?

I am looking for a graphics library with CMYK support (JPG or TIF). I have to read one large image file and one small, and then write the second first. The output should also be CMYK (without CMYK-> RGB conversion). There are such? (C # / C ++ / Java or something else)

+3
source share
1 answer

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

the code you need to do 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);
   }
}
+2
source

Source: https://habr.com/ru/post/1768107/


All Articles