Class AnimatedImage
Implements animated image
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class AnimatedImage : Image
Constructors
AnimatedImage()
Initializes a new instance of the AnimatedImage class.
Declaration
public AnimatedImage()
Fields
FrameHeightProperty
The frame height property
Declaration
public static readonly DependencyProperty FrameHeightProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
FramesPerSecondProperty
The frames per second property
Declaration
public static readonly DependencyProperty FramesPerSecondProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
FrameWidthProperty
The frame width property
Declaration
public static readonly DependencyProperty FrameWidthProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
FrameHeight
Gets or sets the height of the frame.
Declaration
public int FrameHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The height of the frame. |
FramesPerSecond
Gets or sets the frames per second.
Declaration
public int FramesPerSecond { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The frames per second. |
FrameWidth
Gets or sets the width of one frame in image atlas
Declaration
public int FrameWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The width of the frame. |
Methods
MeasureOverride(Size)
Measure layout pass
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Size | availableSize | available size for control |
Returns
| Type | Description |
|---|---|
| EmptyKeys.UserInterface.Size |
Overrides
OnDraw(Renderer, Double, Single)
Called when [draw].
Declaration
protected override void OnDraw(Renderer spriterenderer, double elapsedGameTime, float opacity)
Parameters
| Type | Name | Description |
|---|---|---|
| EmptyKeys.UserInterface.Renderers.Renderer | spriterenderer | The sprite renderer. |
| System.Double | elapsedGameTime | The elapsed game time. |
| System.Single | opacity | The opacity. |