Hi,

this is no solution for everyone but if you want to use tiff's or png
(because they have 8 bit alpha values!) you can use the Java Advanced
Imaging Api without the need of using a component.
Here's my code:

  RenderedImage src = (RenderedImage) JAI.create("fileload", file);
  BufferedImage buffImage = new BufferedImage(src.getWidth(),
src.getHeight(), BufferedImage.TYPE_INT_ARGB);
  Graphics2D graphics = buffImage.createGraphics();
  graphics.drawRenderedImage(src, new java.awt.geom.AffineTransform());

  TextureLoader texLoader = new TextureLoader(buffImage,
TextureLoader.GENERATE_MIPMAP);
  Texture texture = texLoader.getTexture();


Regards
Chris Wewerka

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