Click or drag to resize
CfxOnPaintEventHandler Delegate

[This is preliminary documentation and is subject to change.]

Called when an element should be painted. Pixel values passed to this function are scaled relative to view coordinates based on the value of CfxScreenInfo.DeviceScaleFactor 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: Chromium.Event
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public delegate void CfxOnPaintEventHandler(
	Object sender,
	CfxOnPaintEventArgs e
)

Parameters

sender
Type: SystemObject
e
Type: Chromium.EventCfxOnPaintEventArgs
Remarks
See also the original CEF documentation in cef/include/capi/cef_render_handler_capi.h.
See Also