• 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: Trying to read PICT data using Quartz functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to read PICT data using Quartz functions


  • Subject: Re: Trying to read PICT data using Quartz functions
  • From: Dave MacLachlan <email@hidden>
  • Date: Fri, 21 Apr 2006 09:43:49 -0700

Kenny...

You can use QuickTime functions (GraphicsImporters) with type kQTFileTypePicture to get it done. If you're not worried about performance you can read it in as a PICT, export it to a "in-memory" tiff, and then create an NSImage based on the TIFF. I'm sure there are several other ways of doing it as well, but that one came quickly to mind.

Cheers,
Dave

On Apr 21, 2006, at 9:12 AM, Kenny Leung wrote:

Hi All.

I have been uniformly unsuccessful in trying to read PICT data embedded in a data file. I have the specs for the data file, so I'm pretty sure I'm doing things right.

I have tried extracting the data and sending it to the functions QDPictCreateWithProvider and CGImageCreateWithJPEGDataProvider, which both return NULL. The PICT data seems to have all 0's in the beginning and start with the PICT header code 0x001102FF at 0x60 into the data. I have tried starting at 0 and at the PICT header and neither have worked.

Does anyone have more experience with PICTs?

Thanks a lot!

-Kenny

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Trying to read PICT data using Quartz functions (From: Kenny Leung <email@hidden>)

  • Prev by Date: Trying to read PICT data using Quartz functions
  • Next by Date: NSUserDefaultsController problems
  • Previous by thread: Trying to read PICT data using Quartz functions
  • Next by thread: Re: Trying to read PICT data using Quartz functions
  • Index(es):
    • Date
    • Thread