BitmapSurfacePaint Method Awesomium.NET 1.7.6Awesomium.NET
This method is called whenever the IWebView instance this surface is assigned to, wants to paint a certain section of the Surface with a block of pixels. It is your responsibility to copy srcBuffer to the location in this Surface specified by destRect.

Namespace: Awesomium.Core
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version: 1.7.6.0
Syntax

protected override void Paint(
	IntPtr srcBuffer,
	int srcRowSpan,
	AweRect srcRect,
	AweRect destRect
)

Parameters

srcBuffer
Type: SystemIntPtr
A pointer to a block of pixels in 32-bit BGRA format. The size of the buffer is: srcRowSpan * srcRect.Height.
srcRowSpan
Type: SystemInt32
The number of bytes of each row. (Usually: srcRect.Width * 4)
srcRect
Type: Awesomium.CoreAweRect
The dimensions of the region of srcBuffer to copy from. May have a non-zero origin.
destRect
Type: Awesomium.CoreAweRect
The location to copy srcBuffer to. Always has same dimensions as srcRect but may have different origin (which specifies the offset of the section to copy to).
Remarks

When the call to this method returns, the Updated is fired.
See Also

Reference