Ejemplo n.º 1
0
        public FormGifEditor(Bitmap[] frames, FormRecorder rec)
        {
            InitializeComponent();

              this.Recorder = rec;
              this.Frames = frames;
              this.FrameEdits = new Bitmap[this.Frames.Length];

              this.hScrollBar1.Maximum = frames.Length + this.hScrollBar1.LargeChange - 1;

              int spacew = this.Width - this.pictureBox1.Width;
              int spaceh = this.Height - this.pictureBox1.Height;

              this.Size = new Size(this.Frames[0].Width + spacew, this.Frames[0].Height + spaceh);
              this.RefreshImage();

              this.comboQuality.SelectedIndex = 0;
        }
Ejemplo n.º 2
0
        void StartAnimation()
        {
            Rectangle r = new Rectangle(this.Left + this.Selection.Left, this.Top + this.Selection.Top, this.Selection.Width, this.Selection.Height);
              FormRecordingRect frr = new FormRecordingRect(r, 10);
              FormRecorder fr = new FormRecorder(frr, this.DoneDragging);

              frr.Show();
              fr.Show();
        }