ChromiumWebBrowserOnPaint Method |
Version 67.0.0 Note: This API is now obsolete.
Called when an element should be painted. (Invoked from CefRenderHandler.OnPaint)
Namespace:
CefSharp.OffScreen
Assembly:
CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 67.0.0.0 (67.0.0.0)
Syntax [ObsoleteAttribute("This method will be removed, implement IRenderHandler and assign browser.RenderHandler")]
protected virtual void OnPaint(
PaintElementType type,
Rect dirtyRect,
IntPtr buffer,
int width,
int height
)
protected:
[ObsoleteAttribute(L"This method will be removed, implement IRenderHandler and assign browser.RenderHandler")]
virtual void OnPaint(
PaintElementType type,
Rect dirtyRect,
IntPtr buffer,
int width,
int height
)
Parameters
- type
- Type: CefSharpPaintElementType
indicates whether the element is the view or the popup widget. - dirtyRect
- Type: CefSharp.StructsRect
contains the set of rectangles in pixel coordinates that need to be repainted - buffer
- Type: SystemIntPtr
The bitmap will be will be width * height *4 bytes in size and represents a BGRA image with an upper-left origin - width
- Type: SystemInt32
width - height
- Type: SystemInt32
height
See Also