Re: Runloops and Window Dragging
Re: Runloops and Window Dragging
- Subject: Re: Runloops and Window Dragging
- From: Jens Alfke <email@hidden>
- Date: Wed, 02 Oct 2013 15:06:10 -0700
On Oct 2, 2013, at 11:36 AM, Caylan Larson <email@hidden> wrote:
> I am using CGWindowListCreateImage to fetch an image of the windows behind my app. This works beautifully and is OK for my needs.
I assume you’re doing this to apply some kind of fancy effects to the image, so your window acts like a filter?
Because otherwise, if all you need to do is show some of the space behind the window, you can do that really easily by “punching holes in it” by setting the alpha to be transparent or translucent wherever you want. You just need to draw transparent pixels to the window using the Copy compositing mode.
—Jens
_______________________________________________
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