master
sigonasr2 2 years ago
parent 67d5053ef8
commit 34df39d439
  1. 6
      sig/App.java

@ -160,7 +160,7 @@ class Server
BufferedImage img=r.createScreenCapture(new Rectangle(92, 171, 86, 1)); BufferedImage img=r.createScreenCapture(new Rectangle(92, 171, 86, 1));
for (int i=img.getWidth()-1;i>=0;i--){ for (int i=img.getWidth()-1;i>=0;i--){
if ((img.getRGB(i,0)&255)>100){ if ((img.getRGB(i,0)&255)>100){
return i/(img.getWidth()-1)*100; return (float)i/(img.getWidth()-1)*100;
} }
} }
return 0; return 0;
@ -169,7 +169,7 @@ class Server
BufferedImage img=r.createScreenCapture(new Rectangle(92, 211, 86, 1)); BufferedImage img=r.createScreenCapture(new Rectangle(92, 211, 86, 1));
for (int i=img.getWidth()-1;i>=0;i--){ for (int i=img.getWidth()-1;i>=0;i--){
if ((img.getRGB(i,0)&255)>100){ if ((img.getRGB(i,0)&255)>100){
return i/(img.getWidth()-1)*100; return (float)i/(img.getWidth()-1)*100;
} }
} }
return 0; return 0;
@ -178,7 +178,7 @@ class Server
BufferedImage img=r.createScreenCapture(new Rectangle(781, 134, 432, 1)); BufferedImage img=r.createScreenCapture(new Rectangle(781, 134, 432, 1));
for (int i=img.getWidth()-1;i>=0;i--){ for (int i=img.getWidth()-1;i>=0;i--){
if ((img.getRGB(i,0)&255)>100){ if ((img.getRGB(i,0)&255)>100){
return i/(img.getWidth()-1)*100; return (float)i/(img.getWidth()-1)*100;
} }
} }
return 0; return 0;

Loading…
Cancel
Save