How does your image look like after loading ? Are you having the right colors
then ?
Fredrik Lyd�n schrieb:
> I am not using any ImageComponent (how?):
This is done by the TextureLoader, which does a few things under the hood like
rescaling the image to fit the texture requirements, allocating an
ImageComponent, ... .
But you could do all this stuff by yourself also and have more control what's
happening.
>
>
> Example:
>
> ----------
> PlanarImage pI = JAI.create("fileload", fileName);
> BufferedImage bI = new BufferedImage(pI.getWidth(),
> pI.getHeight(),
> BufferedImage.TYPE_INT_ARGB);
> Graphics2D g2D = bI.createGraphics();
> g2D.drawImage(pI.getAsBufferedImage(), null, null);
> g2D.dispose();
> Texture texture = new TextureLoader(bI, "RBGA").getTexture();
> ----------
>
> This results in incorrect colors. I have also tried with "RGB" without
> success. Any more 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".