Click or drag to resize

CefRenderHandlerOnPaint Method

Called when an element should be painted. Pixel values passed to this method are scaled relative to view coordinates based on the value of CefScreenInfo.device_scale_factor returned from GetScreenInfo. |type| indicates whether the element is the view or the popup widget. |buffer| contains the pixel data for the whole image. |dirtyRects| contains the set of rectangles in pixel coordinates that need to be repainted. |buffer| will be |width|*|height|*4 bytes in size and represents a BGRA image with an upper-left origin.

Namespace:  Internal.Xilium.CefGlue
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
protected abstract void OnPaint(
	CefBrowser browser,
	CefPaintElementType type,
	CefRectangle[] dirtyRects,
	IntPtr buffer,
	int width,
	int height
)

Parameters

browser
Type: Internal.Xilium.CefGlueCefBrowser
type
Type: Internal.Xilium.CefGlueCefPaintElementType
dirtyRects
Type: Internal.Xilium.CefGlueCefRectangle
buffer
Type: SystemIntPtr
width
Type: SystemInt32
height
Type: SystemInt32
See Also