Ejemplo n.º 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));
            }
        }
Ejemplo n.º 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";
 }
Ejemplo n.º 4
0
 public FakeDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "No dithering";
     this.fileNameAddition = "_NONE";
 }
Ejemplo n.º 5
0
 public DitheringBase(FindColor colorfunc, bool useFastMode = false)
 {
     this.colorFunction = colorfunc;
     this.isFastMode    = useFastMode;
 }
Ejemplo n.º 6
0
 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)
 {
 }
Ejemplo n.º 9
0
 public BurkesDithering(FindColor colorfunc)
     : base(colorfunc)
 {
     this.methodLongName = "Burkes";
     this.fileNameAddition = "_BUR";
 }
Ejemplo n.º 10
0
 public NoDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
Ejemplo n.º 11
0
 public StuckiDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "Stucki";
     this.fileNameAddition = "_STU";
 }
Ejemplo n.º 12
0
 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";
 }
Ejemplo n.º 14
0
 public JarvisJudiceNinkeDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "Jarvis-Judice-Ninke";
     this.fileNameAddition = "_JJN";
 }
Ejemplo n.º 15
0
 public StuckiDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
Ejemplo n.º 16
0
 public SierraDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
Ejemplo n.º 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";
 }
Ejemplo n.º 19
0
 public DitheringBase(FindColor colorfunc)
 {
     this.colorFunction = colorfunc;
 }
Ejemplo n.º 20
0
 public AtkinsonDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "Atkinson";
     this.fileNameAddition = "_ATK";
 }
Ejemplo n.º 21
0
 public AtkinsonDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "Atkinson";
     this.fileNameAddition = "_ATK";
 }
Ejemplo n.º 22
0
 public StuckiDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "Stucki";
     this.fileNameAddition = "_STU";
 }
Ejemplo n.º 23
0
 public DitheringBase(FindColor transformFunc)
 {
     TransformationFunction = transformFunc;
 }
Ejemplo n.º 24
0
 public FakeDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "No dithering";
     this.fileNameAddition = "_NONE";
 }
Ejemplo n.º 25
0
 public StuckiDithering(FindColor colorfunc)
     : base(colorfunc)
 {
     this.methodLongName = "Stucki";
     this.fileNameAddition = "_STU";
 }
Ejemplo n.º 26
0
 public BurkesDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
 public JarvisJudiceNinkeDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
Ejemplo n.º 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";
 }
Ejemplo n.º 31
0
 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";
 }
Ejemplo n.º 34
0
 public SierraLiteDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "SierraLite";
     this.fileNameAddition = "_SIEL";
 }
Ejemplo n.º 35
0
 public AtkinsonDithering(FindColor colorfunc) : base(colorfunc)
 {
 }
 public SierraLiteDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "SierraLite";
     this.fileNameAddition = "_SIEL";
 }
Ejemplo n.º 37
0
 public BurkesDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "Burkes";
     this.fileNameAddition = "_BUR";
 }
Ejemplo n.º 38
0
 public DitheringBase(FindColor colorfunc, bool useFastMode = false)
 {
     this.colorFunction = colorfunc;
     this.isFastMode = useFastMode;
 }
Ejemplo n.º 39
0
 public FloydSteinbergDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName   = "Floyd-Steinberg";
     this.fileNameAddition = "_FS";
 }
Ejemplo n.º 40
0
 public BurkesDithering(FindColor colorfunc) : base(colorfunc)
 {
     this.methodLongName   = "Burkes";
     this.fileNameAddition = "_BUR";
 }
Ejemplo n.º 41
0
 public DitheringBase(FindColor colorfunc)
 {
     this.colorFunction = colorfunc;
 }
Ejemplo n.º 42
0
 public AtkinsonDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "Atkinson";
     this.fileNameAddition = "_ATK";
 }
Ejemplo n.º 43
0
 public SierraDithering(FindColor colorfunc, bool useFastMode = false)
     : base(colorfunc, useFastMode: useFastMode)
 {
     this.methodLongName = "Sierra";
     this.fileNameAddition = "_SIE";
 }
Ejemplo n.º 44
0
    public void ClickAnswerBtn()
    {
        FindColor Answer = new FindColor();

        Answer.ClickNextBtn();
    }