Re: Converting a CMYK NSImage to RGB

2009-02-13 Thread Ken Ferry
Hi Ron, It was the -[NSImage lockFocus]/-[NSImage unlockFocus] that did it. You should just take them out, they weren't relevant to what you were trying to do. -[NSImage lockFocus] sets the receiver up as a drawing _destination_. You aren't trying to draw into the image here, you're trying to

Re: Converting a CMYK NSImage to RGB

2009-02-13 Thread Ron Aldrich
Hi Ken, Actually, the -[NSImage lockFocus]/-[NSImage unlockFocus] were added to deal with a multi-thread problem that was deadlocking things. If a background thread updated screen state while I was creating the RGB image representation, I would later see a message in the console log

Converting a CMYK NSImage to RGB

2009-02-12 Thread Ron Aldrich
Folks, I'm having an issue where CMYK images aren't being recognized by my quartz compositions, so I need to convert them to RGB for display. I've written a routine to do it, but its causing problems. NSImageRep* theImageRep = [inputImage bestRepresentationForDevice: [NSDictionary