drawing to an image and quickly copying it
drawing to an image and quickly copying it
- Subject: drawing to an image and quickly copying it
- From: Mitchell Livingston <email@hidden>
- Date: Wed, 23 May 2007 12:41:45 -0400
I have an NSImage that I draw to with lockFocus, compositeToPoint:
with other images, and then unlockFocus on the image. After this I
make a copy of the image using [image copy] and draw to this copy. At
this point it seems that the image that is copied is the image before
I did all of the initial drawing; furthermore, it seems that all of
the drawing on the initial image isn't saved at all.
I tested not doing the copy, and it displayed fine, so I know the
initial drawing worked at some point, but is lost when I make the
copy. If it helps, the initial image itself is a copy of an image
from a file (obtained from imageNamed:).
Any help would be greatly appreciated.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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