El son cualquier librería de gráficos CMYK?
Pregunta
Busco biblioteca de gráficos con soporte CMYK (JPG o TIF). Tengo que leer un archivo de imagen grande y una pequeña, a continuación, escribir el segundo en la primera. De salida tiene que ser también CMYK (sin ninguna conversión CMYK-> RGB). ¿Hay algunos? (C # / C ++ / Java o somthing más)
Solución
(exención de responsabilidad, trabajo que para Atalasoft) Atalasoft DotImage va a leer y escribir imágenes en CMYK, así como realizar operaciones de superposición en el espacio CMYK.
el código que se necesita para hacer esto es:
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);
}
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow