Creates the Texture texture from the Bitmap bitmap.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
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.
- resize
- Type: System..::.Boolean
Disables or enables the automatic texture resize.
Return Value
Created Texture texture.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | bitmap is nullNothingnullptra null reference (Nothing in Visual Basic). |