[webkit-dev] Webkit capture web page content API
Darin Adler
darin at apple.com
Wed May 13 06:39:28 PDT 2009
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:].
-- Darin
More information about the webkit-dev
mailing list