Re: drawing to an image and quickly copying it
Re: drawing to an image and quickly copying it
- Subject: Re: drawing to an image and quickly copying it
- From: "I. Savant" <email@hidden>
- Date: Wed, 23 May 2007 13:27:29 -0400
On 5/23/07, Mitchell Livingston <email@hidden> wrote:
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.
You might want to check out NSImage's caching-related methods. I
suspect the default caching mode or "cached separately" state isn't
quite what you want.
--
I.S.
_______________________________________________
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