  | PackedTexture Constructor (String, Texture2D, Vector2F, Vector2F, Int32, Int32) | 
 
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntaxpublic PackedTexture(
	string name,
	Texture2D texture,
	Vector2F offset,
	Vector2F scale,
	int numberOfColumns,
	int numberOfRows
)
Public Sub New ( 
	name As String,
	texture As Texture2D,
	offset As Vector2F,
	scale As Vector2F,
	numberOfColumns As Integer,
	numberOfRows As Integer
)
public:
PackedTexture(
	String^ name, 
	Texture2D^ texture, 
	Vector2F offset, 
	Vector2F scale, 
	int numberOfColumns, 
	int numberOfRows
)
new : 
        name : string * 
        texture : Texture2D * 
        offset : Vector2F * 
        scale : Vector2F * 
        numberOfColumns : int * 
        numberOfRows : int -> PackedTextureParameters
- 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
See Also