I want to create a Texture2D object from a color indexed image.
The image is 1024 by 1024 and has a 256 colour palette with each element
in the image data indexing the color palette.

I have the following data structures:

// The palette
byte redPalette[256];
byte greenPalette[256];
byte bluePalette[256];

// image data
byte imageData[1024*1024];

Can anyone tell me how a construct a Texture2D object with the above
data? Sample code would be great.

cheers,

Grant

[EMAIL PROTECTED]

===========================================================================
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".

Reply via email to