• 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 into an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawing into an image


  • Subject: Re: drawing into an image
  • From: Nathan Day <email@hidden>
  • Date: Thu, 30 Oct 2003 13:22:55 +1100

You can just lock and unlock focus on an NSImage see the methods

 [NSImage lockFocus]
 [NSImage unlockFocus]

and any drawing will then occur in your NSImage.

On Thursday, October 30, 2003, at 07:47AM, Matthew D Hancher <email@hidden> wrote:

>I am drawing complex objects with NSBezierPath, and I would like to be able to
>do things like redraw them efficiently. It is faster to draw an NSImage of the
>same size than it is to draw these paths, so I'm wondering if it's possible
>to draw the paths into images off-screen first. Is there a good general way to
>make drawing operations happen in an off-screen image buffer that I control?
>
>Thanks,
>Matt
>_______________________________________________
>cocoa-dev mailing list | email@hidden
>Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Source-based installer
  • Next by Date: Re: CFTree usability?
  • Previous by thread: drawing into an image
  • Next by thread: archive
  • Index(es):
    • Date
    • Thread