C# Class BrightIdeasSoftware.ImageRenderer.AnimationState

Instances of this class kept track of the animation state of a single image.
Show file Open project: soywiz/cspspemu

Public Methods

Method Description
AdvanceFrame ( long millisecondsNow ) : void

Advance our images current frame and calculate when it will expire

AnimationState ( ) : System

Create an AnimationState in a quiet state

AnimationState ( Image image ) : System

Create an animation state for the given image, which may or may not be an animation

IsAnimation ( Image image ) : bool

Is the given image an animation

Method Details

AdvanceFrame() public method

Advance our images current frame and calculate when it will expire
public AdvanceFrame ( long millisecondsNow ) : void
millisecondsNow long
return void

AnimationState() public method

Create an AnimationState in a quiet state
public AnimationState ( ) : System
return System

AnimationState() public method

Create an animation state for the given image, which may or may not be an animation
public AnimationState ( Image image ) : System
image Image The image to be rendered
return System

IsAnimation() public static method

Is the given image an animation
public static IsAnimation ( Image image ) : bool
image Image The image to be tested
return bool