Re: How to take a screen shot
Re: How to take a screen shot
- Subject: Re: How to take a screen shot
- From: Finlay Dobbie <email@hidden>
- Date: Wed, 18 Sep 2002 22:06:22 +0100
On Wednesday, September 18, 2002, at 07:02 pm, Kerry Hazelgren wrote:
How would one go about taking a screen shot of a window in Cocoa? I
can figure out how to take an image of the content view, by drawing
into a graphics context, but is it possible to get the whole window,
including the title bar? Is there a way to get pixels from the main
screen?
/*
* Returns base address of display or NULL for an invalid display.
* If the display has not been captured, the returned address may refer
* to read-only memory.
*/
void * CGDisplayBaseAddress(CGDirectDisplayID display);
From CGDirectDisplay.h
-- Finlay
_______________________________________________
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.