ich schnappe das Thema cmyk in rgb wandeln
noch einmal auf.
Und zwar habe ich folgendes Beispiel von Apple gefunden um ein Farbschema in ein anderes zu wandeln. developer.apple.com/documentat…/chapter_7_section_6.html
Allerdings hängt es schon daran, das GetAlphaInfoFromBitmapImageRep() nirgends zu finden ist.
Ich habe es mit CGImageGetAlphaInfo((CGImageRef)theRep); ausgetauscht, was anscheindend auch korrekt funktioniert.
Allerdings kann ich kein Context mit CreateCGBitmapContextWithColorProfile() erstellen, da CGBitmapContextCreate() nichts erstellt.
Jemand ne Ahnung was an dem Example nicht funktioniert? Oder ist mein CGImageGetAlphaInfo((CGImageRef)theRep); doch verkehrt?
Man kann zwar ganz simple mit setColorSpaceName: von NSImageRep ein Bild von CMYK nach RGB wandeln. Allerdings lässt das Ergebnis mehr als nur zu wünschen übrig.
noch einmal auf.
Und zwar habe ich folgendes Beispiel von Apple gefunden um ein Farbschema in ein anderes zu wandeln. developer.apple.com/documentat…/chapter_7_section_6.html
Allerdings hängt es schon daran, das GetAlphaInfoFromBitmapImageRep() nirgends zu finden ist.
Ich habe es mit CGImageGetAlphaInfo((CGImageRef)theRep); ausgetauscht, was anscheindend auch korrekt funktioniert.
Allerdings kann ich kein Context mit CreateCGBitmapContextWithColorProfile() erstellen, da CGBitmapContextCreate() nichts erstellt.
Jemand ne Ahnung was an dem Example nicht funktioniert? Oder ist mein CGImageGetAlphaInfo((CGImageRef)theRep); doch verkehrt?
Man kann zwar ganz simple mit setColorSpaceName: von NSImageRep ein Bild von CMYK nach RGB wandeln. Allerdings lässt das Ergebnis mehr als nur zu wünschen übrig.
:wq! /dev/null