• 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: Scott Thompson <email@hidden>
  • Date: Fri, 21 Apr 2006 15:20:02 -0500


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

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?

Where is your PICT data coming from? I've had no trouble using QDPictCreateWithProvider to convert PICT data into PDF files.


I don't know about your particular case, but 96 bytes of 0's doesn't sound right. Usually PICT data either has a 512 byte header or no header. However I don't think the version bytes (the 0x001102FF) are the very beginning of the header. I believe you have to back up a few bytes from there.

Scott
_______________________________________________
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


  • Follow-Ups:
    • Re: Trying to read PICT data using Quartz functions
      • From: Kenny Leung <email@hidden>
References: 
 >Trying to read PICT data using Quartz functions (From: Kenny Leung <email@hidden>)

  • Prev by Date: Re: Getting exact height of NSAttributedString
  • Next by Date: convert GraphicsImportComponent to NSImage
  • Previous by thread: Re: Trying to read PICT data using Quartz functions
  • Next by thread: Re: Trying to read PICT data using Quartz functions
  • Index(es):
    • Date
    • Thread