Re: Grabbing what's behind a window
Re: Grabbing what's behind a window
- Subject: Re: Grabbing what's behind a window
- From: Eric Schlegel <email@hidden>
- Date: Mon, 29 Oct 2007 16:05:23 -0700
On Oct 29, 2007, at 3:49 PM, Kenny Leung wrote:
Dear Graphics Gurus:
I'm trying to make a transparent "lens" effect on the screen using a
core-image filter. When it's time to update, I orderOut the window
I'm drawing in, grab the background, and then orderFront the window
with the transformed contents. Unfortunately, this does not work - I
keep grabbing the contents of my own window. I have tried the
orderOut, then doing the grab in a performSelector:afterDelay, but
this generates an annoying flicker.
I'm wondering if what I'm trying to do is an impossibility - or is
there some trick by which it can be done?
In Leopard, perhaps you could use CGWindowListCreateImage
(CoreGraphics/CGWindow.h).
-eric
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden