RE: How to grab image in a destined window
RE: How to grab image in a destined window
- Subject: RE: How to grab image in a destined window
- From: "Fei Li" <email@hidden>
- Date: Mon, 7 Feb 2005 10:43:37 -0700
- Thread-topic: How to grab image in a destined window
Title: RE: How to grab image in a destined window
Thanks for responding! I tried the keyboard shortcuts, it's really cool and neat. What I want to do is to grab a series of images in a window and convert it into a movie to play it back later. It's something like a recorder.
How Apple did the window capture? During my coding I even can't find a way to get frame information of other application's window which gives me lots of trouble. Seems Apple knows it very well. Is there any undocumented secrets?
Fei
-----Original Message-----
From: j o a r [mailto:email@hidden]
Sent: Monday, February 07, 2005 10:22 AM
To: Fei Li
Cc: email@hidden
Subject: Re: How to grab image in a destined window
On 2005-02-07, at 17.54, Fei Li wrote:
> I'd like to enable user to select a window then I'll grab the window's
> image and save it. I view the apple application Grab in
> Application\Utilities, it can even grab the image of a window not in
> front. If anyone know how can I do it too. I only know grab image from
> base address, but Grab's way is much more advance.
If you think that's advanced, I don't think you've tried the screen
capture keyboard shortcuts!
Press CMD+Shift+4
Press Space
This will take you to a mode where you can grab anything that is a
window - the menu bar, an open menu, a drawer, icons on the desktop,
the dock, et.c. Very cool, but probably not something that a third
party software vendor can reproduce.
Why do you want to recreate a behaviour that Apple already provides? Do
you need to access the image data and do something with it? If you use
this keyboard shortcut:
Press Ctrl+CMD+Shift+4
...the image data is placed on the clipboard, and it should be
accessible for your application.
You might also be able to use the "screencapture" command line utility
to enter screen capture mode if you want to assist the user.
And finally, there might be some API for doing this all in code that I
don't know about...
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden