C# Class Flood.GUI.Controls.ImagePanel

Image container.
Inheritance: Control
Mostra file Open project: FloodProject/flood Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ImagePanel ( Control parent )

Initializes a new instance of the ImagePanel class.

SetImage ( ResourceHandle imageHandle ) : void
SetUV ( float u1, float v1, float u2, float v2 ) : void

Sets the texture coordinates of the image.

SizeToContents ( ) : void

Sizes the control to its contents.

Protected Methods

Method Description
Render ( Skins skin ) : void

Renders the control using specified skin.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

ImagePanel() public method

Initializes a new instance of the ImagePanel class.
public ImagePanel ( Control parent )
parent Control Parent control.

Render() protected method

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
return void

SetImage() public method

public SetImage ( ResourceHandle imageHandle ) : void
imageHandle ResourceHandle
return void

SetUV() public method

Sets the texture coordinates of the image.
public SetUV ( float u1, float v1, float u2, float v2 ) : void
u1 float
v1 float
u2 float
v2 float
return void

SizeToContents() public method

Sizes the control to its contents.
public SizeToContents ( ) : void
return void