C# Класс Myre.UI.Controls.ImageBox

A control which draws an image.
Наследование: Control
Показать файл Открыть проект

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

Метод Описание
Draw ( SpriteBatch batch ) : void

Draws the control.

ImageBox ( Control parent, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System

Initializes a new instance of the ImageBox class.

ImageBox ( Control parent, Microsoft.Xna.Framework.Graphics.Texture2D texture, Color colour, Rectangle sourceRectangle ) : System

Initializes a new instance of the ImageBox class.

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

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

Draws the control.
public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch An spritebactch already started for alpha blending with deferred sort mode.
Результат void

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

Initializes a new instance of the ImageBox class.
public ImageBox ( Control parent, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
parent Control This controls parent control.
texture Microsoft.Xna.Framework.Graphics.Texture2D The texture.
Результат System

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

Initializes a new instance of the ImageBox class.
public ImageBox ( Control parent, Microsoft.Xna.Framework.Graphics.Texture2D texture, Color colour, Rectangle sourceRectangle ) : System
parent Control This controls parent control.
texture Microsoft.Xna.Framework.Graphics.Texture2D The texture.
colour Color The colour.
sourceRectangle Microsoft.Xna.Framework.Rectangle The source rectangle.
Результат System