Re: Flipping Text
Re: Flipping Text
- Subject: Re: Flipping Text
- From: Dave Fernandes <email@hidden>
- Date: Tue, 30 Jan 2007 15:32:36 -0500
On Jan 30, 2007, at 2:37 PM, Jim Correia wrote:
On Jan 30, 2007, at 2:30 PM, Dave Fernandes wrote:
Yes, using an NSAffineTransform correctly flips any graphics you
draw. However, text rendering ignores this transform. It renders
(in my app) upside down whether or not I use the transform.
Here is a simplification of my code (without the transform) for my
custom NSView.
By removing the code which applies the transform, you've made it
impossible for us to see why your text isn't flipped.
Good point.
Do you realize that when you lock focus on the offscreen image,
your are now drawing in a new context?
No, I didn't realize that.
If you are concatenating a transform before locking focus on the
image, you are applying the transform to the wrong context.
Doh! OK, now I get it. Problem solved.
Thank you.
- Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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