Remove pixelcs

This commit is contained in:
2024-11-03 13:03:50 +01:00
parent bc79315ca2
commit 289f03fbfc
2 changed files with 0 additions and 26 deletions

View File

@@ -56,7 +56,6 @@
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="HotKeyManager.cs"/>
<Compile Include="Pixel.cs"/>
<Compile Include="Program.cs"/>
<Compile Include="Properties\AssemblyInfo.cs"/>
<EmbeddedResource Include="Properties\Resources.resx">

View File

@@ -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;
}
}