Thanks Ken, I have tried it and it works well for me.


On Apr 2, 2010, at 1:15 PM, Ken Ferry wrote:

On Thu, Apr 1, 2010 at 8:44 PM, Kyle Sluder <kyle.slu...@gmail.com> wrote:
On Thu, Apr 1, 2010 at 7:35 PM, zhiy xue <xuez...@gmail.com> wrote:
> I want to support get *.tiff data from clipboard, and convert it to bmp
> format. Below is my code, but it will crash in
> GetGraphicsImporterForDataRef. Could you please help? Many thanks for your
> help.

You shouldn't be using any of this QuickTime stuff. Use ImageIO.

ImageIO is fine, but you can do this operation with Cocoa APIs. It's the same thing under the hood.

Not tested:

NSBitmapImageRep *bitmap = [[[NSBitmapImageRep alloc] initWithData:tiffData] autorelease]; NSData *bmpData = [bitmap representationUsingType:NSBMPFileType properties:props];


And this would not be the appropriate list for help with either
QuickTime or ImageIO.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com

This email sent to kenfe...@gmail.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to