2 using System.Collections.Generic;
5 using DirectOutput.General.Generic;
7 using System.Drawing.Imaging;
9 namespace DirectOutput.General.BitmapHandling
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; }
26 public void LoadImageFile(
string ImageFilePath)
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);