From 289f03fbfc941768e161e24f94f6e6a4274bf4eb Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 3 Nov 2024 13:03:50 +0100 Subject: [PATCH] Remove pixelcs --- DD2Switcher/DD2Switcher.csproj | 1 - DD2Switcher/Pixel.cs | 25 ------------------------- 2 files changed, 26 deletions(-) delete mode 100644 DD2Switcher/Pixel.cs diff --git a/DD2Switcher/DD2Switcher.csproj b/DD2Switcher/DD2Switcher.csproj index 1f8ff78..5ef8f7a 100644 --- a/DD2Switcher/DD2Switcher.csproj +++ b/DD2Switcher/DD2Switcher.csproj @@ -56,7 +56,6 @@ Form1.cs - diff --git a/DD2Switcher/Pixel.cs b/DD2Switcher/Pixel.cs deleted file mode 100644 index 6988065..0000000 --- a/DD2Switcher/Pixel.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Diagnostics; -using System.Drawing; - -namespace DD2Switcher; - -public class Pixel { - 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; - } - - private int x { get; } - private int y { get; } - private int R { get; } - private int G { get; } - private int B { get; } - - public bool ProcessBitmap(Bitmap bmp) { - var tempPixel = bmp.GetPixel(x, y); - return tempPixel.R >= R && tempPixel.B >= B && tempPixel.G >= G; - } -} \ No newline at end of file