PaintBuffer (object)

August 1, 2018 ยท View on GitHub

API categories | API index

PaintBuffer (object)

This object used in: RenderHandler.OnPaint().

Table of contents:

Methods

GetIntPointer

Returnlong

Get int pointer to the void* buffer.

Description from upstream CEF:

|buffer| will be |width|*|height|*4 bytes in size and represents a BGRA image with an upper-left origin.

GetBytes

ParameterType
mode="bgra"string
origin="top-left"string
Returnobject

Converts the void* buffer to string. In Py2 returns 'str' type, in Py3 returns 'bytes' type.

origin may be one of: "top-left", "bottom-left".

mode may be one of: "bgra", "rgba".