Re: Flipping Text
Re: Flipping Text
- Subject: Re: Flipping Text
- From: Jim Correia <email@hidden>
- Date: Tue, 30 Jan 2007 14:37:41 -0500
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.
Do you realize that when you lock focus on the offscreen image, your
are now drawing in a new context? If you are concatenating a
transform before locking focus on the image, you are applying the
transform to the wrong context.
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSImage_Class/Reference/Reference.html#//
apple_ref/occ/instm/NSImage/lockFocus>
Jim
_______________________________________________
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