canvas

i have a canvas in my form.how can i color a single, individule pixel on that canvas.any ideas.thanks
[129 byte] By [MMMalika] at [2007-10-2 15:38:13]
# 1
any method like putpixel or setpixel available in java ?
MMMalika at 2007-7-13 15:18:45 > top of Java-index,Java Essentials,Java Programming...
# 2
Graphics contexts don't know about pixels, if you are going to mess with pixels you need to create a suitable BufferedImage and do your tweaking on that, then use drawImage to paint it.
malcolmmca at 2007-7-13 15:18:45 > top of Java-index,Java Essentials,Java Programming...