Replies: 2 comments 4 replies
-
Personally I'd be looking at https://github.com/hardkoded/puppeteer-sharp which should have better support for this use case. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can try out the dev tools using (var devToolsClient = browser.GetDevToolsClient())
{
var viewport = new CefSharp.DevTools.Page.Viewport();
viewport.Width = 100;
viewport.Height = 100;
viewport.X = 100;
viewport.Y = 100;
viewport.Scale = 1;
var response = await devToolsClient.Page.CaptureScreenshotAsync(clip: viewport);
var image = Image.FromStream(new MemoryStream(response.Data));
} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I am using CefSharp.OffScreen.Example in order to take some screenshots.
What should I do to get a screenshot of the specified location? At present, only full screen shots can be obtained
Beta Was this translation helpful? Give feedback.
All reactions