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 ) |
Parameters
- bitmap
- Type: System.Drawing..::.Bitmap
The source Bitmap image.
- countX
- Type: System..::.Int32
The number of tiles in the X axis.
- countY
- Type: System..::.Int32
The number of tiles in the Y axis.
Return Value
Returns the cut XTextureTiles texture tiles.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | bitmap is nullNothingnullptra null reference (Nothing in Visual Basic). |