Comment 4 for bug 1740421

Revision history for this message
Julian (kj88) wrote : Re: Region not captured correctly in VNC session

I have found a way to bypass this issue:

BufferedImage croppedImage = vnc.capture().getImage().getSubimage(xAxis, yAxis, width, height);
ImageIO.write(croppedImage, "png", new File("tempRead.png"));
String text = TextRecognizer.getInstance().recognize(ImageIO.read(new File("tempRead.png")));