• 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: How to take a screen shot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How to take a screen shot (From: Kerry Hazelgren <email@hidden>)

  • Prev by Date: Cocoa-style HTML documentation
  • Next by Date: Re: UI: "Direct manipulation" is in conflict with "Forgiveness"
  • Previous by thread: How to take a screen shot
  • Next by thread: RE: where is mouseDragged in NSTableView ??
  • Index(es):
    • Date
    • Thread