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

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.0.5 (1.7.0.5)

Syntax

C#
void Paint(
	IntPtr srcBuffer,
	int srcRowSpan,
	AweRect srcRect,
	AweRect destRect
)
Visual Basic
Sub Paint ( _
	srcBuffer As IntPtr, _
	srcRowSpan As Integer, _
	srcRect As AweRect, _
	destRect As AweRect _
)
Visual C++
void Paint(
	IntPtr srcBuffer, 
	int srcRowSpan, 
	AweRect srcRect, 
	AweRect destRect
)

Parameters

srcBuffer
Type: System..::..IntPtr
A pointer to a block of pixels in 32-bit BGRA format. The size of the buffer is: srcRowSpan * srcRect.Height.
srcRowSpan
Type: System..::..Int32
The number of bytes of each row. (Usually: srcRect.Width * 4)
srcRect
Type: Awesomium.Core..::..AweRect
The dimensions of the region of srcBuffer to copy from. May have a non-zero origin.
destRect
Type: Awesomium.Core..::..AweRect
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).

See Also