Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 836 Bytes

PaintBuffer.md

File metadata and controls

43 lines (25 loc) · 836 Bytes

API categories | API index

PaintBuffer (object)

This object used in: RenderHandler.OnPaint().

Table of contents:

Methods

GetIntPointer

Return long

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

Parameter Type
mode="bgra" string
origin="top-left" string
Return object

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".