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

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


  • Follow-Ups:
    • Re: Flipping Text
      • From: Dave Fernandes <email@hidden>
References: 
 >Re: Flipping Text (From: Matt Neuburg <email@hidden>)
 >Re: Flipping Text (From: Dave Fernandes <email@hidden>)

  • Prev by Date: Re: Flipping Text
  • Next by Date: Re: NSCalendar bug.
  • Previous by thread: Re: Flipping Text
  • Next by thread: Re: Flipping Text
  • Index(es):
    • Date
    • Thread