Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose a function for reading the bitmap of rendered content (windowed mode) #427

Closed
cztomczak opened this issue May 22, 2018 · 2 comments
Closed
Milestone

Comments

@cztomczak
Copy link
Owner

In the past in CEF 1 there was a function in CEF 1 that allowed to get the bitmap of rendered content. Such feature was removed from upstream CEF, however it would be nice to have it back in cefpython. There are various native APIs on Windows/Linux/Mac that allow to get a screenshot of window's content. When using off-screen rendering you are already provided with a bitmap in RenderHandler.OnPaint. This issue is to expose such functionality also in windowed mode.

@cztomczak cztomczak added this to the v66 milestone May 22, 2018
@cztomczak
Copy link
Owner Author

Browser.GetImage method is availably only for Linux. If you are interested in exposing this method also on Windows or Mac then PRs are welcome.

@cztomczak
Copy link
Owner Author

Xlib can return browser image in the following formats: XYBitmap, XYPixmap, ZPixmap. I am setting ZPixmap and then converting it to RGB format in Cython which can slow down things a bit. If you want the xlib pixmap/bitmap (for performance reasons) then it would be required to introduce a new param to GetImage, so that you can choose format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant