2

I have a Webkit DOMElement, a div for example. Now I want a renderized NSImage or NSBitmapImageRep of it.

It's like a screenshot of a DOMElement.

Ratata Tata
  • 2,781
  • 1
  • 34
  • 49

1 Answers1

0

Public API choices:

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

Private WebKit method:

-[DOMElement renderedImage]
Mike Abdullah
  • 14,933
  • 2
  • 50
  • 75