• 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
drawing to an image and quickly copying it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: drawing to an image and quickly copying it
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Can you "bind" two values into one?
  • Next by Date: Re: Can you "bind" two values into one?
  • Previous by thread: Re: views not released when window closed
  • Next by thread: Re: drawing to an image and quickly copying it
  • Index(es):
    • Date
    • Thread