Creates the Bitmap bitmap from the Texture texture.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public static Bitmap CreateBitmap(
	Texture texture,
	int level,
	int x,
	int y,
	int width,
	int height
)

Parameters

texture
Type: Texture
Texture the bitmap will be created from.
level
Type: System..::.Int32
Texture layer number.
x
Type: System..::.Int32
The X coordinate of the texture left upper corner.
y
Type: System..::.Int32
The Y coordinate of the texture left upper corner.
width
Type: System..::.Int32
Width of the created bitmap.
height
Type: System..::.Int32
Height of the created bitmap.

Return Value

Created bitmap.

Exceptions

ExceptionCondition
System..::.ArgumentNullException texture is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also