Table of Contents

Class ImageSequence

Namespace
Bonsai.Shaders.Configuration
Assembly
Bonsai.Shaders.dll

Provides configuration and loading functionality for initializing texture sequences from a movie file or image sequence search pattern.

public class ImageSequence : Texture2D, IResourceConfiguration
Inheritance
ImageSequence
Implements
Derived
Inherited Members

Properties

FileName

Gets or sets the path to a movie file or image sequence search pattern.

[TypeConverter(typeof(ResourceFileNameConverter))]
[FileNameFilter("Video Files|*.avi;*.mp4;*.ogg;*.ogv;*.wmv|AVI Files (*.avi)|*.avi|MP4 Files (*.mp4)|*.mp4|OGG Files (*.ogg;*.ogv)|*.ogg;*.ogv|WMV Files (*.wmv)|*.wmv")]
public string FileName { get; set; }

Property Value

string

FlipMode

Gets or sets a value specifying the flip mode applied to individual frames.

public FlipMode? FlipMode { get; set; }

Property Value

FlipMode?

FrameCount

Gets or sets the maximum number of frames to include in the image sequence.

public int? FrameCount { get; set; }

Property Value

int?

Remarks

If no value is specified, all frames in the video will be loaded in the image sequence.

StartPosition

Gets or sets the offset, in frames, at which the image sequence should start.

public int StartPosition { get; set; }

Property Value

int

Methods

CreateResource(ResourceManager)

Creates a new instance of the Texture class containing all loaded texture resources in the image sequence.

public override Texture CreateResource(ResourceManager resourceManager)

Parameters

resourceManager ResourceManager

The ResourceManager object onto which this resource will be loaded. The resource manager can be accessed to load additional resource dependencies which may be required to create the new resource.

Returns

Texture

A new instance of the Texture class representing the image texture sequence.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.