• 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 drawing delay
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer drawing delay


  • Subject: Re: CALayer drawing delay
  • From: David Duncan <email@hidden>
  • Date: Thu, 27 Aug 2009 15:58:28 -0700

On Aug 27, 2009, at 3:28 PM, Ivy Feraco wrote:

in the method I use CGImage to draw .png bitmaps of numerals that count up from 0. The .pngs all have transparency.

Everything works, the counter changes count, but as it changes you can see a slight transition between the two digits.
It almost looks like a brief fade, but I don't have any animation applied to it.

This is expected. By default when the contents of an animation change, Core Animation will apply a 0.25s crossfade animation. You can disable this in various ways – see the documentation for -actionForKey:


If your just drawing an image, you could instead just set the contents directly to the image (same issue applies).
--
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


  • Follow-Ups:
    • Re: CALayer drawing delay
      • From: David Duncan <email@hidden>
References: 
 >CALayer drawing delay (From: Ivy Feraco <email@hidden>)

  • Prev by Date: ScriptingBridge error message
  • Next by Date: Subversion and Interface Builder
  • Previous by thread: CALayer drawing delay
  • Next by thread: Re: CALayer drawing delay
  • Index(es):
    • Date
    • Thread