Changing Pixel Colours

Hi,Is there a way of changing pixel colours in (say) a Graphics (or image) object? I want to be able to create a Graphics object, and then change pixel colours, as determined by the results of a numerical simulation, as results are generated.Any help appreciated!
[291 byte] By [rthorton] at [2007-9-26 2:19:26]
# 1
You can use the drawLine to draw a one-pixel line in the right place.Alternatively (and probably better) use an int array to contain your image data and use a MemoryImageSource to generate an Image for display from that.
KPSeal at 2007-6-29 9:21:52 > top of Java-index,Desktop,Core GUI APIs...
# 2
take a look at thejava.awt.image.BufferedImage
Ragnvald at 2007-6-29 9:21:52 > top of Java-index,Desktop,Core GUI APIs...