Urgent - Java Create image with % grey

  • Thread starter Thread starter DiG
  • Start date Start date

DiG

DiG

Associate
Joined
16 Mar 2004
Posts
2,257
Hi, need some urgent help.

I've got input in the following form
x y %

which I want to transform into an image where % is grey scale, ie 0 % is white and 100% is white

I've found BufferedImage, but won't really know what I'm doing. Can anyone help?
Thanks
Tom Reay
 
Thanks, not really getting it though.

I've found that I could use setRGB(x, y, int) but I have no idea how to generate an int of three R G B values
 
Last edited:
Back
Top Bottom