diff --git a/bin/SigShare.jar b/bin/SigShare.jar index 6d8ad15..b1a4df9 100644 Binary files a/bin/SigShare.jar and b/bin/SigShare.jar differ diff --git a/bin/screenshot.jpg b/bin/screenshot.jpg index 764710a..4e6072f 100644 Binary files a/bin/screenshot.jpg and b/bin/screenshot.jpg differ diff --git a/bin/screenshot_out.jpg b/bin/screenshot_out.jpg index 06b1c5a..cda3475 100644 Binary files a/bin/screenshot_out.jpg and b/bin/screenshot_out.jpg differ diff --git a/src/sig/SigShare.java b/src/sig/SigShare.java index 7b487dc..a8e02e2 100644 --- a/src/sig/SigShare.java +++ b/src/sig/SigShare.java @@ -69,7 +69,7 @@ public class SigShare { }*/ int frame=0; while (true) { - CaptureScreen(); + CaptureScreen(SCREEN_WIDTH,SCREEN_HEIGHT); FileInputStream stream = new FileInputStream(new File("screenshot.jpg")); while (stream.available()>0) { clientOutput.writeByte(stream.read()); @@ -124,12 +124,12 @@ public class SigShare { int frame=0; int dashCount=0; + BufferedOutputStream stream = null; while (true) { - BufferedOutputStream stream = null; while (in.available()>0) { if (stream==null) { - System.out.println("Stream opened."); + //System.out.println("Stream opened."); stream=new BufferedOutputStream(new FileOutputStream(new File("screenshot_out.jpg"))); } int val = in.read(); @@ -145,8 +145,16 @@ public class SigShare { stream.close(); stream=null; dashCount=0; - out.writeChars("Done\r\n"); System.out.println("Frame "+frame+++" processed."); + BufferedImage i = ImageIO.read(new File("screenshot_out.jpg")); + if (i!=null) { + for (int y=0;y