• 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: CGImageRef to bitmap context? [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGImageRef to bitmap context? [SOLVED]


  • Subject: Re: CGImageRef to bitmap context? [SOLVED]
  • From: Scott Thompson <email@hidden>
  • Date: Mon, 13 Aug 2007 13:30:56 -0500


On Aug 13, 2007, at 1:10 PM, David Duncan wrote:
Image IO (and the JPEG/PNG providers) do this by default. You can request that Image IO not do this using the kCGImageSourceShouldCache property (set to true) when you request an image, but as it implies, that is more of a request than a requirement. Unless you need maximum drawing performance (and can prove that caching the image helps) you should not specify this property, as it will consume considerably more memory for each image loaded.

It also seems possible that CGImage could potentially store more than one representation behind it's façade. (I'm not trying to imply that it does, but it could). I could imagine where a CGImage contains more than one cached representation of an image... say for drawing the images into different destination color spaces. If you could ask the CGImage for a pixel, it wouldn't know which cached image it should take the pixel value from.


Scott

_______________________________________________

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: CGImageRef to bitmap context? [SOLVED]
      • From: David Duncan <email@hidden>
References: 
 >CGImageRef to bitmap context? (From: Mike McNamara <email@hidden>)
 >Re: CGImageRef to bitmap context? (From: Scott Thompson <email@hidden>)
 >Re: CGImageRef to bitmap context? [SOLVED] (From: Mike McNamara <email@hidden>)
 >Re: CGImageRef to bitmap context? [SOLVED] (From: Scott Thompson <email@hidden>)
 >Re: CGImageRef to bitmap context? [SOLVED] (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Cocoa and PICT
  • Next by Date: Re: Problem with drawBackgroundForGlyphRange:atPoint:
  • Previous by thread: Re: CGImageRef to bitmap context? [SOLVED]
  • Next by thread: Re: CGImageRef to bitmap context? [SOLVED]
  • Index(es):
    • Date
    • Thread