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

Re: CGContextSaveGState


  • Subject: Re: CGContextSaveGState
  • From: Gideon King <email@hidden>
  • Date: Thu, 16 Feb 2012 07:34:09 +1000

The documentation says it pushes it on to a stack:

"Pushes a copy of the current graphics state onto the graphics state stack for the context."

It also says:

"To restore your drawing environment to a previously saved state, you can use CGContextRestoreGState."

with the clear implication that you can have multiple of them. And it works in practice too… Kind of not sure why the question, since it is clearly stated in the documentation...

Regards

Gideon

On 16/02/2012, at 5:22 AM, William Squires wrote:

> Does this method store the context state in a stack, or just store it in a local variable (struct) somewhere (i.e. does calling this more than once overwrite the previously saved context info?)
>
>


_______________________________________________

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: 
 >CGContextSaveGState (From: William Squires <email@hidden>)

  • Prev by Date: Re: receptionist pattern question: NSOperationQueue vs. GCD
  • Next by Date: Re: receptionist pattern question: NSOperationQueue vs. GCD
  • Previous by thread: Re: CGContextSaveGState
  • Next by thread: Re: CGContextSaveGState
  • Index(es):
    • Date
    • Thread