Table of Contents

Class FilmStrip

Namespace
PluginUI
Assembly
PluginUI.dll

Vertical or horizontal strip of equally sized animation frames (classic "film-strip" knobs and switches).

public sealed record FilmStrip : IEquatable<FilmStrip>
Inheritance
FilmStrip
Implements
Inherited Members

Constructors

FilmStrip(ImageSource, int, Orientation)

Vertical or horizontal strip of equally sized animation frames (classic "film-strip" knobs and switches).

public FilmStrip(ImageSource Image, int FrameCount, Orientation Orientation = Orientation.Vertical)

Parameters

Image ImageSource

The strip image.

FrameCount int

Number of frames in the strip.

Orientation Orientation

Frames stacked vertically (most common) or horizontally.

Properties

FrameCount

Number of frames in the strip.

public int FrameCount { get; init; }

Property Value

int

FrameSize

Size of one frame in DIPs.

public Size FrameSize { get; }

Property Value

Size

Image

The strip image.

public ImageSource Image { get; init; }

Property Value

ImageSource

Orientation

Frames stacked vertically (most common) or horizontally.

public Orientation Orientation { get; init; }

Property Value

Orientation

Methods

FrameForValue(double)

Frame index for a normalized value.

public int FrameForValue(double normalized)

Parameters

normalized double

Returns

int

FramePixels(int)

Source rectangle of a frame, in pixels.

public Rect FramePixels(int index)

Parameters

index int

Returns

Rect