Package wowimage

Examples of wowimage.BLPDecoder


        if(args.length == 1)
        {
            if(args[0].endsWith("blp"))
            {
                String s = args[0];
                BLPDecoder blpdecoder;
        try {
          blpdecoder = new BLPDecoder(s);
                  StringTokenizer stringtokenizer = new StringTokenizer(s, ".");
                  String s2 = stringtokenizer.nextToken() + ".png";
                  blpdecoder.writePNG(s2);
                  System.out.println("Converted " + s + " to " + s2);
              } catch (Exception e) {
          e.printStackTrace();
        }
            } else
View Full Code Here


                StringTokenizer stringtokenizer = new StringTokenizer(s1, ".");
                String s2 = stringtokenizer.nextToken() + ".png";
                String s3 = file.getParent() + "/" + s2;
                try
                {
                    BLPDecoder blpdecoder = new BLPDecoder(s);
                    blpdecoder.writePNG(s3);
                    statusText.append("Decoded " + s1 + " into a .png\n");
                }
                catch(ConversionException conversionexception)
                {
                    statusText.append("Couldn't decode " + s1 + "\n");
View Full Code Here

public class blp extends wowfile {
  BLPDecoder o;
 
  public blp(File f) {
    try {
      o = new BLPDecoder(f);
    } catch (ConversionException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of wowimage.BLPDecoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.