Recent

Author Topic: WKWebView takeSnapshot  (Read 585 times)

MISV

  • Hero Member
  • *****
  • Posts: 797
WKWebView takeSnapshot
« on: April 18, 2024, 04:53:41 pm »
The WKWebView has a separate function for taking screenshots since

Code: Pascal  [Select][+][-]
  1.           TmpNSBitmapRep := FWebBrowser.FWebView_CocoaWKWebView.bitmapImageRepForCachingDisplayInRect(TmpNSRect);
  2.           TmpNSBitmapRep.setSize(TmpNSSize);
  3.           FWebBrowser.FWebView_CocoaWKWebView.cacheDisplayInRect_toBitmapImageRep(TmpNSRect, TmpNSBitmapRep);
  4.  

is not working on this control


Has anyone successfully implemented all headers and got it working?


https://stackoverflow.com/questions/31969950/wkwebview-cachedisplayinrect-screenshot-in-os-x

 

TinyPortal © 2005-2018