On Wed, May 13, 2009 at 6:39 AM, Darin Adler <da...@apple.com> wrote: > On May 13, 2009, at 12:26 AM, Lucius Fox wrote: > >> Does Webkit have an api which captures web page content? for example in >> Safari 4.0 beta, the history/bookmark shows an image of the web content of >> each history/bookmark entry. Can you please tell me which api in webkit >> that Safari 4.0 is using? > > There’s nothing WebKit-specific involved. This is done with standard Cocoa > NSView APIs such as -[NSView displayRectIgnoringOpacity:inContext:] and > -[NSView cacheDisplayInRect:toBitmapImageRep:]. >
Thanks. But if Webkit is not involved. That means it can not capture the web content which is not within the visible area (e.g. a page is long and it has scroll bar)? > -- Darin > > _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev