On Oct 2, 2013, at 11:36 AM, Caylan Larson <i...@caylan.net> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to