Example #1
0
        static void Main(string[] args)
        {
            GiF gif = new GiF(File.Open("test1.gif", FileMode.Open));

            while (true)
            {
                ;
            }
        }
Example #2
0
        public Form1()
        {
            GiF gif = new GiF(File.Open("racoon.gif", FileMode.Open));

            InitializeComponent();
            Size size = gif.GetSize();

            pictureBox1.Size = new Size(size.Width, size.Height);
            this.Size        = new Size(pictureBox1.Size.Width + 16, pictureBox1.Size.Width + 42);
            timing           = gif.GetTiming();
            images           = gif.GetImages().ToArray();
            timer1.Interval  = timing;
            timer1.Start();
        }