• 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: Scaled image in NSButtonCell flipped - drawInRect:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scaled image in NSButtonCell flipped - drawInRect:


  • Subject: Re: Scaled image in NSButtonCell flipped - drawInRect:
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 4 Jan 2006 17:17:47 -0600


On Jan 3, 2006, at 8:22 PM, Richard Salvatierra wrote:

Ricky - Thank you for the reply. I have submitted my code in hopes it will help explain my problem. When I apply the NSAffineTransform, the image does flip, but so do the rest of my drawings. I suppose I have to apply the NSAffineTransform just before I draw the image, then revert back. If so, how? Also, I am fairly new to cocoa so any other pointers/advice greatly appreciated.

You can always wrap particular blocks of drawing like this:

[NSGraphicsContext saveGraphicsState];
// insert code here
[NSGraphicsContext restoreGraphicsState];

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • [SOLVED] Re: Scaled image in NSButtonCell flipped - drawInRect:
      • From: Richard Salvatierra <email@hidden>
References: 
 >Scaled image in NSButtonCell flipped - drawInRect: (From: Richard Salvatierra <email@hidden>)
 >Re: Scaled image in NSButtonCell flipped - drawInRect: (From: Ricky Sharp <email@hidden>)
 >Re: Scaled image in NSButtonCell flipped - drawInRect: (From: Richard Salvatierra <email@hidden>)

  • Prev by Date: Re: UNICODE from a WinTel box
  • Next by Date: Re: Core Data Binding: Reading a binary image (TIFF) {part deux}
  • Previous by thread: Re: Scaled image in NSButtonCell flipped - drawInRect:
  • Next by thread: [SOLVED] Re: Scaled image in NSButtonCell flipped - drawInRect:
  • Index(es):
    • Date
    • Thread