I am new to Java graphics (computer graphics in general) and Stack Overflow, so please help me and help me better talk about my problem.
I'm currently trying to display a BufferedImage along with the original image in the Java GUI. This is my code:
Image oriImage = robot.getQwerkController().getVideoStreamService().getFrame();
Graphics2D hi = bufferedImage.createGraphics();
hi.drawImage(oriImage, 0,0, null);
hi.dispose();
images[0].put(oriImage, 1);
images[1].put(bufferedImage, 2);
and the put function is as follows:
public synchronized void put(Image image, int frameNumber) {
icon.setImage(image);
display.paintImageIcon(icon, frameNumber);
imageSet = true;
notifyAll();
}
However, the final graphical interface is as follows

So the image works, but the BufferedImage does not. I would suggest that this works because BufferedImage is a subclass of Image ... Any ideas? Please let me know if additional code is needed ~ Thanks in advance :)
EDIT 1:
, , , bufferedImage Graphics2D , .
:
http://i.imgur.com/rJAdp.jpg
. - ( )
2:
bufferedImage . , EDIT 1, , drawImage.
3:
, while drawImage, ( false, ), !: D
boolean x = false;
while (!x) {
x = hi.drawImage(oriImage, 0,0, null);
}