BitmapSurface.Initialize Method
BitmapSurfaceInitialize 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:

protected override void Initialize(
	IWebView view,
	int width,
	int height


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.
Type: SystemInt32
Indicates the new width of the view.
Type: SystemInt32
Indicates the new height of the view.

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