Skip to content

Commit

Permalink
added multimonitor support
Browse files Browse the repository at this point in the history
  • Loading branch information
tiemonl committed Jul 1, 2018
1 parent 1f24cea commit 24d4202
Show file tree
Hide file tree
Showing 17 changed files with 8 additions and 1,230 deletions.
Binary file modified .vs/fisher/v15/.suo
Binary file not shown.
Binary file modified .vs/fisher/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/fisher/v15/sqlite3/storage.ide
Binary file not shown.
10 changes: 7 additions & 3 deletions fisher/MethodHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,15 @@ public Color GetPixelColor(int x, int y) {
}

private static Bitmap GetScreenShot() {
Bitmap result = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
int screenLeft = SystemInformation.VirtualScreen.Left;
int screenTop = SystemInformation.VirtualScreen.Top;
int screenWidth = SystemInformation.VirtualScreen.Width;
int screenHeight = SystemInformation.VirtualScreen.Height;

Bitmap result = new Bitmap(screenWidth, screenHeight, PixelFormat.Format32bppRgb);
{
using (Graphics gfx = Graphics.FromImage(result)) {
gfx.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0,
Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
gfx.CopyFromScreen(screenLeft, screenTop, 0, 0, result.Size, CopyPixelOperation.SourceCopy);
}
}
return result;
Expand Down
Binary file removed fisher/bin/Debug/IronOcr.dll
Binary file not shown.
1,224 changes: 0 additions & 1,224 deletions fisher/bin/Debug/IronOcr.xml

This file was deleted.

Binary file modified fisher/bin/Debug/fisher.exe
Binary file not shown.
Binary file modified fisher/bin/Debug/fisher.pdb
Binary file not shown.
Binary file modified fisher/bin/Release/fisher.exe
Binary file not shown.
Binary file modified fisher/bin/Release/fisher.pdb
Binary file not shown.
Binary file modified fisher/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion fisher/obj/Debug/fisher.csproj.CoreCompileInputs.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b51a733abec9a8799ace15a23411639fc7f87773
808f7a33c7dbbd03ba8b6f40d76c5e703655a37a
2 changes: 0 additions & 2 deletions fisher/obj/Debug/fisher.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ C:\Users\Liam\Dropbox\Coding Shit\Bit Heroes Fishing\fisher\fisher\obj\Debug\fis
C:\Users\Liam\Dropbox\Coding Shit\Bit Heroes Fishing\fisher\fisher\obj\Debug\fisher.pdb
C:\Users\tiemonl1\Dropbox\Coding Shit\Bit Heroes Fishing\fisher\fisher\obj\Debug\fisher.csprojResolveAssemblyReference.cache
C:\Users\Liam\Dropbox\Coding Shit\Bit Heroes Fishing\fisher\fisher\obj\Debug\fisher.csprojResolveAssemblyReference.cache
C:\Users\Liam\Dropbox\Coding Shit\Bit Heroes Fishing\fisher\fisher\bin\Debug\IronOcr.dll
C:\Users\Liam\Dropbox\Coding Shit\Bit Heroes Fishing\fisher\fisher\bin\Debug\IronOcr.xml
Binary file modified fisher/obj/Debug/fisher.exe
Binary file not shown.
Binary file modified fisher/obj/Debug/fisher.pdb
Binary file not shown.
Binary file modified fisher/obj/Release/fisher.exe
Binary file not shown.
Binary file modified fisher/obj/Release/fisher.pdb
Binary file not shown.

0 comments on commit 24d4202

Please sign in to comment.