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
ImageImageSourceThe strip image.
FrameCountintNumber of frames in the strip.
OrientationOrientationFrames stacked vertically (most common) or horizontally.
Properties
FrameCount
Number of frames in the strip.
public int FrameCount { get; init; }
Property Value
FrameSize
Size of one frame in DIPs.
public Size FrameSize { get; }
Property Value
Image
The strip image.
public ImageSource Image { get; init; }
Property Value
Orientation
Frames stacked vertically (most common) or horizontally.
public Orientation Orientation { get; init; }
Property Value
Methods
FrameForValue(double)
Frame index for a normalized value.
public int FrameForValue(double normalized)
Parameters
normalizeddouble
Returns
FramePixels(int)
Source rectangle of a frame, in pixels.
public Rect FramePixels(int index)
Parameters
indexint