Made few enhancements

Done tweaking the imaging package:
It now supports wicked fast image writing to the disk in the bmp, TGA32 and TGA 24 formats.
It also is capable of loading the mentioned media from as a JWS application, Jar file, or a local directory.

Quick note on how to use it:
TargaFile.saveTargaFile(view.getSnapshot(canvas), true); For 32 bpp TGA screenshots

TargaFile.saveTargaFile(view.getSnapshot(canvas), false); for 24 bpp TGAscreenshots

WindowsBitmapFile.saveBitmapFile(view.getSnapshot(canvas)); for 24 bpp BMP screenshots.

To load a media, the following linea of code will work regardless of the type of application (be it JWS, JAR or local application):


  private Texture loadTexture(String filename){
    BufferedImage bufferedImage = null;

    try{
      bufferedImage = WindowsBitmapFile.getBufferedImage(getClass().getClassLoader().getResource(filename));
      if(bufferedImage.getWidth() <= 0)
        throw new Exception();
    }catch(Exception e){
       bufferedImage = WindowsBitmapFile.getBufferedImage(filename);
    }
    return TextureLoader.tf.loadTexture(bufferedImage, "RGBA" , true ,
                                        Texture.MULTI_LEVEL_LINEAR,
                                        Texture.MULTI_LEVEL_LINEAR,
                                        Texture.CLAMP_TO_EDGE);

  }

idiot… ::slight_smile:
http://www.users.xith.org/JavaCoolDude/Xith3DFix/imaging.rar