Hi,
I'm new to j3d so you'll have to forgive me for asking silly questions.
I want to create a buffered image on a shape (a painting) and want to draw on it.
First i used the pixelgrabber which made my pictures seem like kubist paintings, so i
figured the way to do it was by changing the pixels:
TextureLoader texture3 = new TextureLoader("painting.jpg", this);
Texture2D texture2D = (Texture2D)texture3.getTexture();
ImageComponent2D nwImageComp = (ImageComponent2D)texture2D.getImage(0);
BufferedImage nwBufferedImage = nwImageComp.getImage();
java.awt.image.WritableRaster nwRaster = nwBufferedImage.getRaster();
DataBufferInt nwDataBufferInt = (DataBufferInt)nwRaster.getDataBuffer();
int[][] Pixels = nwDataBufferInt.getBankData();
This returns the pixels which leads me to my questions :
* I can't do anything with them because i've got no idea what those integers mean or
make any sense out of them
* And even worse i can't seem to make a whole image again from the pixels.
Any insights would be appreciated
Thanks,
Jerome
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".