phimage/Erik

I need take a screenshot

omgbbqhaxx opened this issue · 2 comments

Hi, you was added screenshot speciality on roadmap but you dont add ass a code can you improve this feature.

if you cast the engine there is come code callable, but I do thinks it work if nothing is displayed

extension WebKitLayoutEngine {
   public func snapshot(_ size: CGSize) -> ErikImage? {

if you cast the engine there is come code callable, but I do thinks it work if nothing is displayed

extension WebKitLayoutEngine {
   public func snapshot(_ size: CGSize) -> ErikImage? {

How exactly is this used I’ve tried to use this and no result. Could you give a small example of its use