Re: Rendering an NSControl into a NSImage?
Re: Rendering an NSControl into a NSImage?
- Subject: Re: Rendering an NSControl into a NSImage?
- From: Mark Alldritt <email@hidden>
- Date: Tue, 01 Apr 2003 13:00:37 -0800
>
> I'm looking for an example showing how to render a NSControl (e.g.
>
> NSButton)
>
> into an NSImage.
>
>
Sample code:
>
>
http://developer.apple.com/samplecode/Sample_Code/Cocoa/
>
Color_Sampler.htm
>
>
See the files "Snapshot.[hm]"
Thanks for the pointer. However, the problem with this sample is that it
(a) requires that the control be on-screen, and (b) includes the window
background. I want to capture the image of the control without the
background.
Cheers
-Mark
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB:
http://www.latenightsw.com/ CANADA V8V-4M9
_______________________________________________
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.