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: j o a r <email@hidden>
- Date: Mon, 7 Feb 2005 18:22:11 +0100
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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