Re: drawing into an image
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.