示例#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);
 }
示例#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;
 }
示例#3
0
        public CapturePhotoSetting()
        {
            InitializeComponent();
            FormHelper.InitHabitToForm(this);
            loader = new ConfigLoader <CapturePhotoSet>(this);
            CapturePhotoSet set = StaticCacheManager.GetConfig <CapturePhotoSet>();

            try
            {
                this.lbBgColor.BackColor =
                    Color.FromArgb(set.BgRgbR, set.BgRgbG, set.BgRgbB);
            }
            catch (System.Exception ex)
            {
            }
        }
示例#4
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);
 }