Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
- Subject: Does NSImageBitmapRep -drawInRect:fromRect:…hints: takes hints into account?
- From: Vincent Habchi <email@hidden>
- Date: Fri, 18 Nov 2011 14:54:02 +0100
Hi there,
I’m trying to draw a flipped NSImageBitmapRep object (data comes out of an OpenGL depth buffer) in a NSView. I thought I could set up an appropriate affine transform (x’ = x, y’ = height - y), embed it in a dictionary and put that in the hints parameter of a -drawInRect:fromRect:…hints: to ask Cocoa to apply the transform before displaying the image. However, the call seems to ignore completely my transform (whatever I set it to). Is there anything escaping from my understanding, or is this expected behavior?
Thanks a lot,
Vincent_______________________________________________
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