Question

Je suis à la recherche pour la bibliothèque graphique avec prise en charge CMJN (JPG ou TIF). Je dois lire un grand fichier image et un petit, puis écrire seconde sur la première. Sortie doivent être également CMJN (sans CMJN> conversion RVB). Il y en a? (C # / C ++ / Java ou somthing autre)

Était-ce utile?

La solution

(Responsabilité, je travaille pour Atalasoft) Atalasoft DotImage va lire et des images d'écriture en CMJN ainsi que d'effectuer des opérations de superposition dans l'espace CMJN.

le code que vous devez faire est:

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);
   }
}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top