posted 22 years ago
Hi James,
Presumably you have an image on your panel... if not all the pixels are the same color.
So you could use a java.awt.image.pixelGrabber and call getColorModel() on it -
and then the getRed(), getGreen() getBlue() getAlpha() on each of the pixels in the array....
I haven't actually tried any code so there might be a better way to do this.
Bye,
Terry
Raising Flares debut album 'Ignition' out now
http://www.raisingflares.com
Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)