Creates the texture tiles by cutting the Texture texture.

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

Syntax

C#
public static XTextureTiles CreateTextureTiles(
	Texture texture,
	int countX,
	int countY,
	int tileWidth,
	int tileHeight,
	int borderX,
	int borderY,
	int spaceX,
	int spaceY
)

Parameters

texture
Type: Texture
The source Texture texture.
countX
Type: System..::.Int32
The number of tiles in the X axis.
countY
Type: System..::.Int32
The number of tiles in the Y axis.
tileWidth
Type: System..::.Int32
Tile width.
tileHeight
Type: System..::.Int32
Tile height.
borderX
Type: System..::.Int32
Border size in the X axis.
borderY
Type: System..::.Int32
Border size in the Y axis.
spaceX
Type: System..::.Int32
Space size between tiles in the X axis.
spaceY
Type: System..::.Int32
Space size between tiles in the Y axis.

Return Value

Returns the cut XTextureTiles texture tiles.

Exceptions

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

See Also