Example #1
0
 public CaptureImage(Image image, PictureBox pic, CapturePhotoSet set)
     : this(set)
 {
     //this.panelSelect.Size = new Size(width, height);
     this.panelSource.BackgroundImage = image;
     this.pic = pic;
     //dragger = new Dragger(this.panelSource, this.panelSelect, this.panelSelect.Location);
 }
Example #2
0
 public CaptureImage(CapturePhotoSet set)
 {
     InitializeComponent();
     this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     this.panelSelect.Size = new Size(set.CapWidth, set.CapHeight);
     this.panelSource.Size = new Size(set.DevWidth, set.DevHeight);
     this.Size             = new Size(set.DevWidth + 100, set.DevHeight + 100);
     this.set = set;
 }
Example #3
0
        public DriverPicCapture()
        {
            InitializeComponent();
            this.InitOnConstruct();
            DriverPicCaptureConfig config = StaticCacheManager.GetConfig <DriverPicCaptureConfig>();

            set = StaticCacheManager.GetConfig <CapturePhotoSet>();
            if (set.BgRgbEnable)
            {
                transColor = Color.FromArgb(set.BgRgbR, set.BgRgbG, set.BgRgbB);
            }
            this.picPic.Size        = new Size(set.CapWidth + 2, set.CapHeight + 2);
            this.Height             = this.picPic.Location.Y + set.CapHeight + 40;
            this.txtPicPath.Text    = config.PicPath;
            this.txtExportPath.Text = config.PicExpPath;
            tw = new Twain();
            tw.Init(this.Handle);
        }