DefaultRenderHandler.OnPaint Method |
Version 101.0.180
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().
This method is only called when
SharedTextureEnabled is set to false.
Called on the CEF UI Thread
Namespace:
CefSharp.OffScreen
Assembly:
CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 101.0.180.0 (101.0.180.0)
Syntaxpublic virtual void OnPaint(
PaintElementType type,
Rect dirtyRect,
IntPtr buffer,
int width,
int height
)
public:
virtual void OnPaint(
PaintElementType type,
Rect dirtyRect,
IntPtr buffer,
int width,
int height
)
Parameters
- type
- Type: CefSharp.PaintElementType
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 will be width * height *4 bytes in size and represents a BGRA image with an upper-left origin - width
- Type: System.Int32
width - height
- Type: System.Int32
height
Implements
IRenderHandler.OnPaint(PaintElementType, Rect, IntPtr, Int32, Int32)
See Also