• 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: CALayers - printing and flippedness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayers - printing and flippedness


  • Subject: Re: CALayers - printing and flippedness
  • From: Gideon King <email@hidden>
  • Date: Wed, 15 Sep 2010 08:15:25 +1000

Absolutely brilliant, thanks Kyle - downloading it now...

Gideon


On 15/09/2010, at 4:08 AM, Kyle Sluder wrote:

> On Tue, Sep 14, 2010 at 10:12 AM, Gideon King <email@hidden> wrote:
>> I have done some performance testing and it appears that I'll need to go the route of pure layers for most of it (the animation got a bit jerky with 1,000 layer backed views), but I guess I'll be able to factor out the drawing code and then when I want to print, just create an offscreen view and draw into it and print it. A bit more work, but probably worth it in order to access the power of Core Animation.
>
> We have an addition to Core Animation that mimics the Core Animation
> rendering process, walking the layer tree and setting up the correct
> CTM so that the same code can be used to render into both the layer's
> context or a PDF context for printing. We obviously don't support a
> lot of the stuff that Core Animation does, but we support enough to
> get a reasonable facsimile that doesn't involve creating a 300-dpi
> bitmap using CARenderer.
>
> The relevant method is -[CALayer(OQExtensions)
> renderInContextIgnoringHiddenIgnoringCache:useAnimatedValues:] and is
> found in our public OmniQuartz framework on github:
> http://github.com/omnigroup/OmniGroup/blob/master/Frameworks/OmniQuartz/CALayer-OQExtensions.m#L489
>
> --Kyle Sluder

_______________________________________________

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: 
 >Re: CALayers - printing and flippedness (From: Matt Neuburg <email@hidden>)
 >Re: CALayers - printing and flippedness (From: Gideon King <email@hidden>)
 >Re: CALayers - printing and flippedness (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Fast User switching
  • Next by Date: Make checkbox in table view uneditable
  • Previous by thread: Re: CALayers - printing and flippedness
  • Next by thread: Re: CALayers - printing and flippedness
  • Index(es):
    • Date
    • Thread