2010-12-12 44 views

回答

0

公共API选择:

-[NSView cacheDisplayInRect:toBitmapImageRep:] 
-[NSBitmapImageRep initWithFocusedViewRect:] 

私人WebKit的方法:

-[DOMElement renderedImage] 
+0

的RenderedImage没有工作,在我的情况。我的DOMElement是一个SVG组。它返回一个没有任何表示的NSImage。 – 2010-12-13 18:48:46

+0

我更新了我的Webkit版本。现在,私人方法的作品,谢谢! – 2010-12-14 00:22:50

+0

相信'-renderedImage'是在Safari/WebKit 4中添加的,如果有帮助的话。 – 2010-12-14 10:52:50