Click or drag to resize
Sprite Constructor (SpriteController, Image, Size)
Generate a new sprite. It takes the image and the width and height. If there are multiple images of that width and height in the image, an animation is created.

Namespace:  SpriteLibrary
Assembly:  SpriteLibrary (in SpriteLibrary.dll) Version: 1.0.0.5 (1.0.0.5)
Syntax
C#
public Sprite(
	SpriteController Controller,
	Image SpriteImage,
	Size SpriteSize
)

Parameters

Controller
Type: SpriteLibrarySpriteController
The sprite controller that manages this sprite
SpriteImage
Type: System.DrawingImage
The image we pull the animation from
SpriteSize
Type: System.DrawingSize
The size of the animation frame
See Also