• 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: WebConvertNSImageToCGImageRef Issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebConvertNSImageToCGImageRef Issues


  • Subject: Re: WebConvertNSImageToCGImageRef Issues
  • From: John Pannell <email@hidden>
  • Date: Mon, 16 Jan 2006 09:49:00 -0700

Hi Chad-

Thanks for the code, though really I need some way to deal with arbitrary NSImages.

You can replace the PNG specific call in my function with the more generic CGImageCreate, or any of the CGImageSourceCreate* functions if you are targeting Tiger. There is also GraphicsImportCreateCGImage, which uses QuickTime to import the image. I went with the PNG solution because it required few parameters compared to the other functions. All are documented in the XCode documentation.


For anyone interested in CoreGraphics, I cannot speak highly enough a book announced in one of Apple's recent developer newsletters: Programming with Quartz, by Gelphman and Laden. Well written, concise, many examples... it is a very good book for anyone interested in the drawing mechanics underlying Cocoa and Carbon.

Hope this helps!

John

_______________________________________________
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: WebConvertNSImageToCGImageRef Issues
      • From: Chad Weider <email@hidden>
References: 
 >WebConvertNSImageToCGImageRef Issues (From: Chad Weider <email@hidden>)
 >Re: WebConvertNSImageToCGImageRef Issues (From: John Pannell <email@hidden>)
 >Re: WebConvertNSImageToCGImageRef Issues (From: Chad Weider <email@hidden>)

  • Prev by Date: Re: NSTextView keydown alternative?
  • Next by Date: Re: "Modal" Window
  • Previous by thread: Re: WebConvertNSImageToCGImageRef Issues
  • Next by thread: Re: WebConvertNSImageToCGImageRef Issues
  • Index(es):
    • Date
    • Thread