예제 #1
0
        private void SetCanvas(SizeSetterResult size_setter_res)
        {
            ResetBuffer();
            canvas.Image = new Bitmap(size_setter_res.Width, size_setter_res.Heigth);
            Graphics g = Graphics.FromImage(canvas.Image);

            canvas.Enabled = true;
            g.Clear(Color.White);
            // Buffer stuff
            _buffer.Add(canvas.Image as Bitmap);
            _bufferIndex = 0;
            // UI
            _filename = DEFAULT_FILE_NAME;
            Text      = _filename + CAPTURE_RIGHT_SIDE;
            lblBufferSizeValue.Text  = _buffer.Count.ToString();
            lblBufferIndexValue.Text = _bufferIndex.ToString();
            // Flags
            isFileSaved = true;
        }
예제 #2
0
 public SizeSetterForm()
 {
     InitializeComponent();
     Result = new SizeSetterResult();
 }