Re: CGContextSaveGState
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