C# Класс Zeplin.Image

Defines a texture resource, animation data, and drawing instructions. Wraps a Texture2D.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
FrameSize Point

Открытые методы

Метод Описание
Image ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
Image ( string resource ) : System

Constructs a Sprite from the specified Texture2D resource

Приватные методы

Метод Описание
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.

Описание методов

Image() публичный Метод

public Image ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
Результат System

Image() публичный Метод

Constructs a Sprite from the specified Texture2D resource
public Image ( string resource ) : System
resource string The name of a Texture2D resource
Результат System

Описание свойств

FrameSize публичное свойство

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
Результат Point