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: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
protected abstract void OnPaint(
	CefBrowser browser,
	CefPaintElementType type,
	CefRectangle[] dirtyRects,
	IntPtr buffer,
	int width,
	int height
)

Parameters

browser  CefBrowser
 
type  CefPaintElementType
 
dirtyRects  CefRectangle
 
buffer  IntPtr
 
width  Int32
 
height  Int32
 
See Also