BufferedImage red mask
Hi, I have to take screenshot of some area on the desktop.
I am doing it this way:
and every screenshot saved to .jpg looks like this one:
BufferedImage image = new Robot().createScreenCapture(area.areaRect);
//then I paint in on JPanel
It doesn't happen for pngs and gifs.
I googled about this problem and found a solution, creating image by the Toolkit class:
but I have no idea how can I take screenshot with it.
Image toolkitImage = Toolkit.getDefaultToolkit().createImage(
Any ideas? Thansk! :)