Implement beeping on end of round

This commit is contained in:
PhatDave
2022-05-08 14:55:04 +02:00
parent 60ad8e4e08
commit cdba24d69b
3 changed files with 163 additions and 102 deletions

25
DD2Switcher/Pixel.cs Normal file
View File

@@ -0,0 +1,25 @@
using System;
using System.Drawing;
namespace DD2Switcher;
public class Pixel {
private int x { get; set; }
private int y { get; set; }
private int R { get; set; }
private int G { get; set; }
private int B { get; set; }
public Pixel(int x, int y, int R, int G, int B) {
this.x = x;
this.y = y;
this.R = R;
this.G = G;
this.B = B;
}
public Boolean ProcessBitmap(Bitmap bmp) {
Color tempPixel = bmp.GetPixel(x, y);
return tempPixel.R >= R && tempPixel.B >= B && tempPixel.G >= G;
}
}