|
-
Jan 23rd, 2022, 02:31 PM
#11
Re: VB6 WebView2-Binding (Edge-Chromium)
 Originally Posted by C--E
PChart.Picture = picWV.Image
but obviously that doesn't work.
The PictureBox picWV which is used in the Demo, is only providing "a Container-hWnd" for the Browser-instance,
(which places its own Browser-hWnd as a Child inside the picWV.hWnd).
But there is a builtin Method, which captures the current Browser-Content as a Pixel-Graphic
(returning a cCairoSurface-Object, which you can use for all kind of purposes, e.g. writing to a PNG-ByteArray or -File for example)
Long story short - please try:
Set PChart.Picture = WV.CapturePreview(CaptureAs_PNG).Picture
Olaf
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|