• 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: Getting the image of a window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Getting the image of a window?


  • Subject: re: Getting the image of a window?
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 24 Aug 2001 09:22:12 -0400

I have some sample code up at cs.northwestern.edu/~josha/ to take a screen shot using Cocoa. I think the version that handles 32 and 16-bit screen resolution's posted, but if it's not, email me and I'll update what's available.

Be warned, sometimes, if another app's updating the screen when this code runs, weird things happen. I've tried capturing the screen, but that throws up a display mask and lets me capture a nice, big black rectangle. Oh well.

hth,
Josh
---
email@hidden || http://cs.northwestern.edu/~josha
"BASIC is the Computer Science equivalent of `Scientific Creationism'." --Fortune


  • Follow-Ups:
    • Re: Getting the image of a window?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Weird NSWindow aspectRatio behavior
  • Next by Date: Re: Docs, questions and stuff
  • Previous by thread: Re: Getting the image of a window?
  • Next by thread: Re: Getting the image of a window?
  • Index(es):
    • Date
    • Thread