Click or drag to resize
CfxOnPaintEventArgs Class

[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.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    ChromiumCfxEventArgs
      Chromium.EventCfxOnPaintEventArgs

Namespace: Chromium.Event
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxOnPaintEventArgs : CfxEventArgs

The CfxOnPaintEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyBrowser
Get the Browser parameter for the OnPaint callback.
Public propertyBuffer
Get the Buffer parameter for the OnPaint callback.
Public propertyDirtyRects
Get the DirtyRects parameter for the OnPaint callback. Do not keep a reference to the elements of this array outside of this function.
Public propertyHeight
Get the Height parameter for the OnPaint callback.
Public propertyType
Get the Type parameter for the OnPaint callback.
Public propertyWidth
Get the Width parameter for the OnPaint callback.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_render_handler_capi.h.
See Also