Getting the applet image from an external application
I'm trying to get the image for the applet into a java.awt.image.BufferedImage for analysis. My current solution, which does not seem to work, is to create a blank BufferedImage, get it's graphics, call the applet's paint method with the BufferedImage's graphics. Then (this is where it falls apart, I think), I use the getRGB(int x, int y) method in the BufferedImage and convert that to a color an analyze it. The *problem* is that I'm getting a whole bunch of exceptions... I think they were NullPointerExceptions?
And if it helps, I'm loading the applet in the Runedev client, http://www.runedev.info/. The applet is RuneScape, RuneScape - MMORPG - The No.1 Free Online Multiplayer Game
Thanks in advance!