Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
- Subject: Re: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
- From: Kyle Sluder <email@hidden>
- Date: Fri, 18 Nov 2011 08:36:13 -0800
On Fri, Nov 18, 2011 at 6:18 AM, Vincent Habchi <email@hidden> wrote:
> PS : Of course, a workaround is to flip the view coordinates thus:
>
> [myView translateOriginToPoint:NSMakePoint(0, [self frame].size.height)];
> [myView scaleUnitSquareToSize:NSMakeSize(1, -1)];
>
> but it still does not explain why -drawInRect:fromRect:…hints: seems to ignore the hints.
Re-read the "NSImage: deprecating -[NSImage setFlipped:], adding a
drawing method that respects context flippedness" section of the 10.6
AppKit release notes to make sure you're correctly using the "flipped"
property and the respectFlipped: argument to -drawInRect:::::: :
http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKitOlderNotes.html
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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