• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: drawing to an image and quickly copying it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >drawing to an image and quickly copying it (From: Mitchell Livingston <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: NSAutorelease and memory usage (multithreads)
  • Previous by thread: drawing to an image and quickly copying it
  • Next by thread: Re: drawing to an image and quickly copying it
  • Index(es):
    • Date
    • Thread