2 using System.Collections.Generic;
7 using System.Drawing.Imaging;
18 private Dictionary<int,FastBitmap> _Frames=
new Dictionary<int,FastBitmap>();
20 public Dictionary<int,FastBitmap> Frames
22 get {
return _Frames; }
23 private set { _Frames = value; }
28 Frames =
new Dictionary<int, FastBitmap>();
30 Image Img = Image.FromFile(ImageFilePath);
32 FrameDimension dimension =
new FrameDimension(Img.FrameDimensionsList[0]);
34 int FrameCount = Img.GetFrameCount(dimension);
37 for (
int FrameNumber = 0; FrameNumber < FrameCount; FrameNumber++)
39 Img.SelectActiveFrame(dimension, FrameNumber);
43 Frames.Add(FrameNumber, F);
62 this.AfterNameChanged +=
new EventHandler<NameChangeEventArgs>(FastBitmap_AfterNameChanged);
68 this.AfterNameChanged -=
new EventHandler<NameChangeEventArgs>(FastBitmap_AfterNameChanged);
Abstract base class for named items. Implements the name property and the necessary events...
string NewName
Gets or sets the new name.
EventArgs for name change events.
void LoadImageFile(string ImageFilePath)
The namespace DirectOutput.General contains classes for general use.