CGBitmapRef and User Space Coordinates
CGBitmapRef and User Space Coordinates
- Subject: CGBitmapRef and User Space Coordinates
- From: "Carter R. Harrison" <email@hidden>
- Date: Tue, 15 Apr 2008 22:52:32 -0400
Hi All,
I have a CGBitmapRef that I am using as a backing store for my NSView
subclass. The CGBitmapRef has the same dimensions as my NSView. Each
time I draw to the backing store, I call my view's
setNeedsDisplayInRect: method to invalidate the area in which I have
drawn. Is it necessary to convert the rectangle to which I have drawn
into user space coordinates before feeding them into
setNeedsDisplayInRect:? It seems like I can get away without doing
this because my view is the same size as the backing store, but I'm
getting some weird behavior (things drawing correctly but in the wrong
area). Thanks in advance.
-Carter
_______________________________________________
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