Click or drag to resize
DigitalRunePackedTexture Constructor (String, Texture2D, Vector2F, Vector2F, Int32, Int32)
Initializes a new instance of the PackedTexture class.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public PackedTexture(
	string name,
	Texture2D texture,
	Vector2F offset,
	Vector2F scale,
	int numberOfColumns,
	int numberOfRows
)

Parameters

name
Type: SystemString
The original asset name of the packed texture. Can be or empty.
texture
Type: Texture2D
The texture atlas that contains the packed texture.
offset
Type: DigitalRune.Mathematics.AlgebraVector2F
The UV offset of the packed texture in the texture atlas.
scale
Type: DigitalRune.Mathematics.AlgebraVector2F
The scale of the packed texture relative to the texture atlas.
numberOfColumns
Type: SystemInt32
The number of columns in the tile set.
numberOfRows
Type: SystemInt32
The number of rows in the tile set.
Exceptions
ExceptionCondition
ArgumentNullExceptiontexture is .
ArgumentOutOfRangeExceptionnumberOfColumns or numberOfRows is out of range.
See Also