Represents a class for managing the capturing and saving of screenshots.
Inheritance: System.ComponentModel.Component, IPersistableOutput
示例#1
0
        public MainCropForm()
        {
            Configuration.Current.ActiveCropWindow = this;
            imageCapture = new ImageCapture();
            ApplyConfiguration();

            points = new Point[]
            {
                new Point(TransparentMargin - TabHeight,
                          TransparentMargin - TabHeight),
                new Point(TransparentMargin + TabTopWidth,
                          TransparentMargin - TabHeight),
                new Point(TransparentMargin + TabBottomWidth,
                          TransparentMargin),
                new Point(TransparentMargin,
                          TransparentMargin),
                new Point(TransparentMargin,
                          TransparentMargin + TabBottomWidth),
                new Point(TransparentMargin - TabHeight,
                          TransparentMargin + TabTopWidth)
            };

            colorTables.Add(new CropFormBlueColorTable());
            colorTables.Add(new CropFormDarkColorTable());
            colorTables.Add(new CropFormLightColorTable());
            currentColorTable = (CropFormColorTable) colorTables[0];
            SetColors();
            SetUpForm();
            SetUpMenu();
            if (LimitMaxWorkingSet()) Process.GetCurrentProcess().MaxWorkingSet = (IntPtr) 5000000;
            SaveConfiguration();
        }
示例#2
0
 public MainCropForm()
 {
     Configuration.Current.ActiveCropWindow = this;
     imageCapture = new ImageCapture();
     ApplyConfiguration();
     colorTables.Add(new CropFormBlueColorTable());
     colorTables.Add(new CropFormDarkColorTable());
     colorTables.Add(new CropFormLightColorTable());
     currentColorTable = (CropFormColorTable) colorTables[0];
     SetColors();
     SetUpForm();
     SetUpMenu();
     if (LimitMaxWorkingSet()) Process.GetCurrentProcess().MaxWorkingSet = (IntPtr) 5000000;
     SaveConfiguration();
 }