Skip to content

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

Description

@cztomczak

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.

Activity

  1. added this to the v66 milestone on May 22, 2018
  2. cztomczak commented on May 30, 2018

    @cztomczak
    OwnerAuthor

    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.

  3. cztomczak commented on May 30, 2018

    @cztomczak
    OwnerAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions