Creates the Texture texture from the Bitmap bitmap.

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

Syntax

C#
public static Texture CreateTexture(
	Bitmap bitmap,
	bool autoMipMap
)

Parameters

bitmap
Type: System.Drawing..::.Bitmap
Bitmap to create the texture from.
autoMipMap
Type: System..::.Boolean
Disables or enables the automatic generation of the pre-computed texture miniatures for faster scene drawing.

Return Value

Created Texture texture.

Exceptions

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

See Also