Click or drag to resize

ChromiumWebBrowser.OnPaint Method

Version 99.2.120
Called when an element should be painted. Pixel values passed to this method are scaled relative to view coordinates based on the value of DeviceScaleFactor returned from GetScreenInfo(). To override the default behaviour override this method or implement your own IRenderHandler and assign to RenderHandler Called on the CEF UI Thread

Namespace:  CefSharp.Wpf
Assembly:  CefSharp.Wpf (in CefSharp.Wpf.dll) Version: 99.2.120.0 (99.2.120.0)
Syntax
protected virtual void OnPaint(
	bool isPopup,
	Rect dirtyRect,
	IntPtr buffer,
	int width,
	int height
)

Parameters

isPopup
Type: System.Boolean
indicates whether the element is the view or the popup widget.
dirtyRect
Type: CefSharp.Structs.Rect
contains the set of rectangles in pixel coordinates that need to be repainted
buffer
Type: System.IntPtr
The bitmap will be width * height *4 bytes in size and represents a BGRA image with an upper-left origin. The buffer should no be used outside the scope of this method, a copy should be taken. As the buffer is reused internally and potentially even freed.
width
Type: System.Int32
width
height
Type: System.Int32
height
See Also