• 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: CALayer maybe silly question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer maybe silly question


  • Subject: Re: CALayer maybe silly question
  • From: David Duncan <email@hidden>
  • Date: Thu, 28 Jan 2010 13:20:25 -0800

On Jan 28, 2010, at 12:48 PM, vincent habchi wrote:

> Of course. But then, admitting I do indeed draw offscreen and then load contents in the CALayer, on what object shall I draw? A CGLayer? Something else?

There are only 2 types of context you can create (bitmap & pdf) and only one that can give you a CGImage as a result of the drawing (bitmap).

>> If you mean to see the drawing as it progresses, you will need to manage that yourself. You would likely want to completely overhaul your rendering process to do it however, as using a small fixed number of tiles would make this very slow as you would end up needing to respecify content you've already specified (basically draw-upload-draw-upload).
>
> The trick would obviously be drawing offscreen and then fire a timer each second or so to upload content until the full drawing is done. Why not?


The problem isn't so much in implementing that as the performance implications of doing that. You may very well get it working quickly, but at the same time you may not like the results or the performance. Or you may find it is fine for what you are doing. It will depend a lot on how much content you have and the specifications of the system you are running on.
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

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: 
 >CALayer maybe silly question (From: vincent habchi <email@hidden>)
 >Re: CALayer maybe silly question (From: David Duncan <email@hidden>)
 >Re: CALayer maybe silly question (From: vincent habchi <email@hidden>)
 >Re: CALayer maybe silly question (From: David Duncan <email@hidden>)
 >Re: CALayer maybe silly question (From: vincent habchi <email@hidden>)
 >Re: CALayer maybe silly question (From: David Duncan <email@hidden>)
 >Re: CALayer maybe silly question (From: vincent habchi <email@hidden>)
 >Re: CALayer maybe silly question (From: David Duncan <email@hidden>)
 >Re: CALayer maybe silly question (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: Hot to define a connection from source code?
  • Next by Date: Re: Forcing menu update in 10.4?
  • Previous by thread: Re: CALayer maybe silly question
  • Next by thread: Fastest way to convert an NSDate into an NSString
  • Index(es):
    • Date
    • Thread