On 7 Mar 2009, at 11:14, Paul Sanders wrote:

Which technique?  The Quartz technique will get you the full window,
including the titlebar. The -dataWithPDFInsideRect: gets you PDF data instead of a bitmap. Neither of which is advantageous when you want a
bitmap image of the contents of a window.

If you are using Core Animation, you might try setting the opacity of the window's layer to 0. (Forgive me is this is complete rubbish as I only have
a vague idea of what I am talking about).


No problem! Thanks for taking the time to suggest something.

Unfortunately my window isn't layer-backed or layer-hosting. If it were, then trying to capture any bitmap data would likely respect the opacity setting and I'd get a transparent image.

All suggestions are appreciated though, thanks.

Jonathan

http://espresso-served-here.com
_______________________________________________

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

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

Reply via email to