ISurfaceInitialize Method Awesomium.NET 1.7.6Awesomium.NET
Called when the size of the view has changed and the surface needs to be re-initialized.

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

void Initialize(
	IWebView view,
	int width,
	int height
)

Parameters

view
Type: Awesomium.CoreIWebView
Indicates the view requesting the surface initialization. This is the view this ISurface instance has been assigned too. Surfaces can only be assigned to a single view at a time.
width
Type: SystemInt32
Indicates the new width of the view.
height
Type: SystemInt32
Indicates the new height of the view.
Remarks

This method is called right after CreateSurface, to initialize the surface. It can be called more than once, whenever the size of the view changes, if the same surface is used throughout the view's life.

This is the place where it is generally suggested that you initialize any back buffer used to copy the view's pixel buffer.

See Also

Reference