TIFFs on pasteboard losing alpha when pasted into Carbon apps
TIFFs on pasteboard losing alpha when pasted into Carbon apps
- Subject: TIFFs on pasteboard losing alpha when pasted into Carbon apps
- From: John Scalo <email@hidden>
- Date: Tue, 15 Jul 2003 19:07:15 -0700
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] set
Data: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?
Thanks
John
_______________________________________________
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.