C# Class Zeplin.Image

Defines a texture resource, animation data, and drawing instructions. Wraps a Texture2D.
Exibir arquivo Open project: zumpiez/Zeplin

Public Properties

Property Type Description
FrameSize Point

Public Methods

Method Description
Image ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
Image ( string resource ) : System

Constructs a Sprite from the specified Texture2D resource

Private Methods

Method Description
Draw ( Transformation transformation ) : void

Draws this sprite using the given transformation and depth

If on a layer, depth only applies within that layer.

Draw ( Transformation transformation, Rectangle sourceRectangle ) : void

Draws this sprite using the given transformation and depth

If on a layer, depth only applies within that layer.

Method Details

Image() public method

public Image ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
return System

Image() public method

Constructs a Sprite from the specified Texture2D resource
public Image ( string resource ) : System
resource string The name of a Texture2D resource
return System

Property Details

FrameSize public_oe property

Gets or sets the dimensions of a frame's size on the sprite
This is used for animations that are composed of smaller images within the texture, known either as sprite sheet or filmstrip animation.
public Point FrameSize
return Point