Re: Scaled image in NSButtonCell flipped - drawInRect:
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