Creates the tiles by cutting the Bitmap.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
| C# |
|---|
public static XTextureTiles CreateTextureTiles( Bitmap bitmap, int countX, int countY, int tileWidth, int tileHeight ) |
Parameters
- bitmap
- Type: System.Drawing..::.Bitmap
The source Bitmap image.
- countX
- Type: System..::.Int32
Number of tiles in the X axis.
- countY
- Type: System..::.Int32
Number of tiles in the Y axis.
- tileWidth
- Type: System..::.Int32
Tile width.
- tileHeight
- Type: System..::.Int32
Tile height.
Return Value
Returns the cut XTextureTiles texture tiles.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | bitmap is nullNothingnullptra null reference (Nothing in Visual Basic). |