| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Jan 31, 2007, at 03:18 AM, Mike Kluev wrote:
I would not recommend that approach, as the math is non-trivial, and you can get subtle floating point errors (due to rounding).
Curious, would the errors be observable on the screen or paper.
Your far better off doing a CGContextSaveGState() when you first get the context, and if you ever need to go back to the initial CTM, popping state until you reach the default state again (then saving state again to preserve that).
But that will reset the whole context to the saved state. What if the OP needs to reset only the CTM, while leaving other context parameters intact?
David Duncan
_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden
| References: | |
| >Re: a couple of CGContext questions (From: Mike Kluev <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.