/// <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)); } }
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"; }
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) { }
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"; }
public StuckiDithering(FindColor colorfunc) : base(colorfunc) { }
public SierraDithering(FindColor colorfunc) : base(colorfunc) { }
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; }
public AtkinsonDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode) { this.methodLongName = "Atkinson"; this.fileNameAddition = "_ATK"; }
public StuckiDithering(FindColor colorfunc) : base(colorfunc) { this.methodLongName = "Stucki"; this.fileNameAddition = "_STU"; }
public DitheringBase(FindColor transformFunc) { TransformationFunction = transformFunc; }
public BurkesDithering(FindColor colorfunc) : base(colorfunc) { }
public JarvisJudiceNinkeDithering(FindColor colorfunc) : base(colorfunc) { }
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 SierraLiteDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode) { this.methodLongName = "SierraLite"; this.fileNameAddition = "_SIEL"; }
public AtkinsonDithering(FindColor colorfunc) : base(colorfunc) { }
public SierraDithering(FindColor colorfunc, bool useFastMode = false) : base(colorfunc, useFastMode: useFastMode) { this.methodLongName = "Sierra"; this.fileNameAddition = "_SIE"; }
public void ClickAnswerBtn() { FindColor Answer = new FindColor(); Answer.ClickNextBtn(); }