Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bilt HIView to Offscreen bitmap



Eric Schlegel wrote:

>I'd have to actually debug this to be sure, but I bet that the web  
>view is not going to work with CreateOffscreenImage because it's  
>really an NSView embedded inside an HIView, and it uses AppKit's  
>drawing code rather than Carbon's.

In the past I've found capturing an image of a web view did require
using its internal NSView - dataWithPDFInsideRect should give you some
data you can use for rendering to a bitmap.

However, depending on the content you're trying to display, it may not
actually be possible to capture everything.

Flash content is particularly tricky, since it often draws through a
magic OpenGL overlay rather than the NSView (and unfortunately there's
no way to turn this off, in order to force drawing to pass through
Quartz).

The HIWebView adapter also has a couple of invalidation bugs, so you may
want to copy some of the workarounds from Nano's NHIWebView class (look
for "rdar" in <http://tinyurl.com/yohxnn>).


-dair
___________________________________________________
mailto:email@hidden       http://www.refnum.com/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.