I'm ot quite sure about that but there are BufferedImage formats like BGR and
RGB. So I suppose that the order of the color bands is reversed. Check the
BufferedImage typae after reading. To Correct this you will have to go deeper
into the java.awt.image package. Probably it can be solved by creating a new
BufferedImage with a SampleModel which defines a new order how the banks are
mapped to bands. If this is possible you don't have to make a copy of the image
data.
regards
Paul
Fredrik Lyd�n schrieb:
> Hi!
>
> I have some problems loading textures with JAI;
>
> PlanarImage planarImage = JAI.create("fileload", fileName);
> Texture texture = new TextureLoader(planarImage.getAsBufferedImage());
>
> results in incorrect colors (i.e. yellow gets turquoise).
>
> Without using JAI the colors are correct, but the loading is very slow
> (15 seconds compared to 4 with JAI).
>
> Thankful for any tips!
>
> Regards,
> Fredrik
>
> ===========================================================================
> 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".
==========================================================================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".