• 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: Rendering a raw image buffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rendering a raw image buffer


  • Subject: Re: Rendering a raw image buffer
  • From: Graham Cox <email@hidden>
  • Date: Fri, 22 Feb 2013 13:44:19 +1100

On 22/02/2013, at 1:30 PM, Ken Thomases <email@hidden> wrote:

> I don't know that you can.  You should probably create a fresh CGImage from the data for each render, unless you know that you'll render repeatedly with the same CGImage (which implies "with the same image content").  I believe that creating a new CGImage and drawing with that _is_ the way of telling the frameworks "I have updated pixel data and I want to draw it as efficiently as possible".


OK, creating a new image each time works well enough (that is, it works great, but I haven't profiled it yet to see whether it's really efficient), and I can extend that to only be recreated when the underlying data is changed, so that should be fine.

I think the key point I was missing is the fundamental immutability of CGImage....

Thanks! :)

--Graham


_______________________________________________

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

References: 
 >Rendering a raw image buffer (From: Graham Cox <email@hidden>)
 >Re: Rendering a raw image buffer (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Rendering a raw image buffer
  • Next by Date: Re: How to recognize mutability?
  • Previous by thread: Re: Rendering a raw image buffer
  • Next by thread: A plugin for a sandboxed app - where to can I successfully store a temp file?
  • Index(es):
    • Date
    • Thread