Exemple #1
0
        /// <summary>
        /// 查找指定区域内的颜色,颜色格式"RRGGBB-DRDGDB",注意,和按键的颜色格式相反
        /// </summary>
        /// <param name="dmsoft"></param>
        /// <param name="findColor"></param>
        /// <returns></returns>
        public static Point FindColor(this dmsoft dmsoft, FindColor findColor)
        {
            int x, y;
            int ret = dmsoft.FindColor(findColor.X1, findColor.Y1, findColor.X2, findColor.Y2, findColor.Color, findColor.Sim, findColor.Dir, out x, out y);

            if (ret == 0)
            {
                return(new Point());
            }
            else
            {
                return(new Point(x, y));
            }
        }
Exemple #2
0
 public BurkesDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "Burkes";
     this.fileNameAddition = "_BUR";
 }
 public FloydSteinbergDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "Floyd-Steinberg";
     this.fileNameAddition = "_FS";
 }
 public FakeDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "No dithering";
     this.fileNameAddition = "_NONE";
 }
Exemple #5
0
 public DitheringBase(FindColor colorfunc, bool useFastMode = false)
 {
     this.colorFunction = colorfunc;
     this.isFastMode    = useFastMode;
 }
 public StuckiDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "Stucki";
     this.fileNameAddition = "_STU";
 }
 public JarvisJudiceNinkeDithering(FindColor colorfunc)
     : base(colorfunc)
 {
     this.methodLongName = "Jarvis-Judice-Ninke";
     this.fileNameAddition = "_JJN";
 }
 public FloydSteinbergDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
 public BurkesDithering(FindColor colorfunc)
     : base(colorfunc)
 {
     this.methodLongName = "Burkes";
     this.fileNameAddition = "_BUR";
 }
 public NoDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
Exemple #11
0
 public StuckiDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "Stucki";
     this.fileNameAddition = "_STU";
 }
 public AtkinsonDithering(FindColor colorfunc)
     : base(colorfunc)
 {
     this.methodLongName = "Atkinson";
     this.fileNameAddition = "_ATK";
 }
 public JarvisJudiceNinkeDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "Jarvis-Judice-Ninke";
     this.fileNameAddition = "_JJN";
 }
Exemple #14
0
 public JarvisJudiceNinkeDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "Jarvis-Judice-Ninke";
     this.fileNameAddition = "_JJN";
 }
Exemple #15
0
 public StuckiDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
Exemple #16
0
 public SierraDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
Exemple #17
0
 public FakeDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "No dithering";
     this.fileNameAddition = "_NONE";
 }
 public SierraLiteDithering(FindColor colorfunc)
     : base(colorfunc)
 {
     this.methodLongName = "SierraLite";
     this.fileNameAddition = "_SIEL";
 }
 public DitheringBase(FindColor colorfunc)
 {
     this.colorFunction = colorfunc;
 }
Exemple #20
0
 public AtkinsonDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "Atkinson";
     this.fileNameAddition = "_ATK";
 }
Exemple #21
0
 public AtkinsonDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "Atkinson";
     this.fileNameAddition = "_ATK";
 }
Exemple #22
0
 public StuckiDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "Stucki";
     this.fileNameAddition = "_STU";
 }
Exemple #23
0
 public DitheringBase(FindColor transformFunc)
 {
     TransformationFunction = transformFunc;
 }
 public FakeDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "No dithering";
     this.fileNameAddition = "_NONE";
 }
 public StuckiDithering(FindColor colorfunc)
     : base(colorfunc)
 {
     this.methodLongName = "Stucki";
     this.fileNameAddition = "_STU";
 }
 public BurkesDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
 public JarvisJudiceNinkeDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
Exemple #28
0
 public SierraTwoRowDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "SierraTwoRow";
     this.fileNameAddition = "_SIE2R";
 }
 public SierraTwoRowDithering(FindColor colorfunc)
     : base(colorfunc)
 {
     this.methodLongName = "SierraTwoRow";
     this.fileNameAddition = "_SIE2R";
 }
 public FloydSteinbergDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "Floyd-Steinberg";
     this.fileNameAddition = "_FS";
 }
 public FakeDithering(FindColor colorfunc)
     : base(colorfunc)
 {
     this.methodLongName = "No dithering";
     this.fileNameAddition = "_NONE";
 }
 public JarvisJudiceNinkeDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "Jarvis-Judice-Ninke";
     this.fileNameAddition = "_JJN";
 }
 public FloydSteinbergDithering(FindColor colorfunc)
     : base(colorfunc)
 {
     this.methodLongName = "Floyd-Steinberg";
     this.fileNameAddition = "_FS";
 }
Exemple #34
0
 public SierraLiteDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "SierraLite";
     this.fileNameAddition = "_SIEL";
 }
Exemple #35
0
 public AtkinsonDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
 public SierraLiteDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "SierraLite";
     this.fileNameAddition = "_SIEL";
 }
 public BurkesDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "Burkes";
     this.fileNameAddition = "_BUR";
 }
 public DitheringBase(FindColor colorfunc, bool useFastMode = false)
 {
     this.colorFunction = colorfunc;
     this.isFastMode = useFastMode;
 }
Exemple #39
0
 public FloydSteinbergDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "Floyd-Steinberg";
     this.fileNameAddition = "_FS";
 }
Exemple #40
0
 public BurkesDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "Burkes";
     this.fileNameAddition = "_BUR";
 }
 public DitheringBase(FindColor colorfunc)
 {
     this.colorFunction = colorfunc;
 }
 public AtkinsonDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "Atkinson";
     this.fileNameAddition = "_ATK";
 }
 public SierraDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "Sierra";
     this.fileNameAddition = "_SIE";
 }
Exemple #44
0
    public void ClickAnswerBtn()
    {
        FindColor Answer = new FindColor();

        Answer.ClickNextBtn();
    }