Hi Everyone,
I need to create an ImageComponent2D to give it as input to a
texture.
I get a BufferedImage which has a ComponentColorModel with a CS_GRAY
ColorSpace (I don't have any control on it so
I can't get something else).
I create the ImageComponent2D in the following way:
BufferedImage bImage = img; // The image I get with the
ComponentColorModel
ImageComponent2D image = new ImageComponent2D
(ImageComponent.FORMAT_RGBA ,bImage);
Since I did not see gray scale format in the ImageComponent, I used
the FORMAT_RGBA.
My problem is that it takes a very very very long time to create the
ImageComponent2D.
I did some tests and I saw that if I give the ImageComponent2D
images with DirectColorModel or IndexColorModel,
it is created much more fast.
Is someone noticed it too? What do you suggest me to do?
Thanks a lot in advance,
Rakefet
===========================================================================
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".