Re: NSImage rendering upside down
Re: NSImage rendering upside down
- Subject: Re: NSImage rendering upside down
- From: email@hidden
- Date: Wed, 30 Apr 2003 09:48:29 +0200
On mardi, avril 29, 2003, at 05:12 PM, Eric Cole wrote:
Ultimately, I am trying to remove the shadow from the image displayed
in a status item. In doing so, it looks like the image needs to be
drawn directly, so I have added a category to override
drawInteriorWithFrame:inView: and draw the image.
Below is the source. The call to
drawInRect:fromRect:operation:fraction: draws the image upside down.
Is there a better way to remove the shadow from an NSButtonCell
drawing an image in a status item? If not, why is the image flipping
and how is it turned off?
Must be because the coordinates are flipped in a NSButton.
IIRC, it can be drawn correctly using compositeToPoint for instance.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.