• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get tiff from clipboard and convert to bmp?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get tiff from clipboard and convert to bmp?


  • Subject: Re: How to get tiff from clipboard and convert to bmp?
  • From: Ken Ferry <email@hidden>
  • Date: Thu, 1 Apr 2010 22:15:18 -0700

On Thu, Apr 1, 2010 at 8:44 PM, Kyle Sluder <email@hidden> wrote:

> On Thu, Apr 1, 2010 at 7:35 PM, zhiy xue <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to get tiff from clipboard and convert to bmp?
      • From: zhiy xue <email@hidden>
References: 
 >How to get tiff from clipboard and convert to bmp? (From: zhiy xue <email@hidden>)
 >Re: How to get tiff from clipboard and convert to bmp? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: How to get tiff from clipboard and convert to bmp?
  • Next by Date: Re: NSCollectionView/NSArrayController/NSButton action puzzle
  • Previous by thread: Re: How to get tiff from clipboard and convert to bmp?
  • Next by thread: Re: How to get tiff from clipboard and convert to bmp?
  • Index(es):
    • Date
    • Thread