Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
71 lines (46 loc) · 1.46 KB

File metadata and controls

71 lines (46 loc) · 1.46 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

API categories | API index

Image (object)

Table of contents:

Methods

GetAsBitmap

Parameter Type
scale_factor float
color_type cef_color_type_t
alpha_type cef_alpha_type_t
Return bytes

cef_color_type_t constants in the cefpython module:

  • CEF_COLOR_TYPE_RGBA_8888,
  • CEF_COLOR_TYPE_BGRA_8888,

enum cef_alpha_type_t constants in the cefpython module:

  • CEF_ALPHA_TYPE_OPAQUE,
  • CEF_ALPHA_TYPE_PREMULTIPLIED,
  • CEF_ALPHA_TYPE_POSTMULTIPLIED,

GetAsPng

Parameter Type
scale_factor float
with_transparency bool
Return bytes

Returns image data as bytes.

Description from upstream CEF:

Returns the PNG representation that most closely matches |scale_factor|. If |with_transparency| is true any alpha transparency in the image will be represented in the resulting PNG data. |pixel_width| and |pixel_height| are the output representation size in pixel coordinates. Returns a CefBinaryValue containing the PNG image data on success or NULL on failure.

GetHeight

Return int

Returns the image heifght in density independent pixel (DIP) units.

GetWidth

Return int

Returns the image width in density independent pixel (DIP) units.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.