Re: TIFFs on pasteboard losing alpha when pasted into Carbon apps
Re: TIFFs on pasteboard losing alpha when pasted into Carbon apps
- Subject: Re: TIFFs on pasteboard losing alpha when pasted into Carbon apps
- From: publiclook <email@hidden>
- Date: Tue, 15 Jul 2003 22:41:36 -0400
On Tuesday, July 15, 2003, at 10:07 PM, John Scalo wrote:
If I place a TIFF with alpha on the pasteboard like so:
---
NSData *tiffData;
NSImage *image = (some image...);
tiffData = [image TIFFRepresentation];
[[NSPasteboard generalPasteboard] declareTypes:[NSArray
arrayWithObjects:NSTIFFPboardType, nil] owner:nil];
[[NSPasteboard generalPasteboard] setData:tiffData
forType:NSTIFFPboardType];
---
...and paste into any Cocoa app, it looks fine. However pasting into a
Carbon app (like a fairly popular one called Photoshop), the alpha
channel
is ignored or lost.
Is there some sort of Cocoa pasteboard to Carbon clipboard conversion
that's
not happening properly? Anyone know of a workaround to this?
I don't believe that Photoshop implements tiff correctly and/or the
tiff standard has so much flexibility that Cocoa and Photoshop
implement tiff transparency incompatibly.
Try a different bitmap format like gif or png. Do saved tiffs from a
Cocoa app load OK in Photoshop ?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.