São alguma biblioteca de gráficos CMYK?
Pergunta
Estou procurando biblioteca gráfica com suporte ao CMYK (JPG ou TIF). Eu tenho que ler um arquivo de imagem grande e um pequeno e depois escrever em segundo lugar no primeiro. A saída também deve ser CMYK (sem qualquer conversão CMYK-> RGB). Há algum? (C#/c ++/java ou algo mais)
Solução
(Isenção de isenção, eu trabalho para a Atalasoft)ATALASOFT DOTIMAGE lerá e escreverá imagens como CMYK, além de executar operações de sobreposição no espaço CMYK.
O código que você precisaria fazer é:
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 em: CC-BY-SA com atribuição
Não afiliado a StackOverflow