Package com.ngt.jopenmetaverse.shared.sim.imaging

Examples of com.ngt.jopenmetaverse.shared.sim.imaging.IOpenJPEG$DecodeToImageResult


    for(File f: files)
    {
      IBitmap origbitmap = new BitmapBufferedImageImpl(ImageIO.read(f));
      Assert.assertTrue(origbitmap.getHeight() > && origbitmap.getWidth() > 0);
      System.out.println(origbitmap.getHeight() + " : " + origbitmap.getWidth());
      IOpenJPEG iojpeg = new OpenJPEGFactoryImpl().getIntance();
      byte[] bytearray = iojpeg.EncodeFromImage(origbitmap, false);
      Assert.assertTrue(bytearray.length > 0);
      System.out.println("Output File: " + fileLocation.getPath() + "/" + f.getName() + ".jp2");
      FileOutputStream fos = new FileOutputStream(new File(fileLocation.getPath() + "/" + f.getName() + ".jp2"));
      fos.write(bytearray);
      fos.flush();
View Full Code Here


      //wait for 1 min
      textureDone.waitOne(60 * 1000);
      if(result[0] != null)
      {
        //Decode the jpeg2000 image
        IOpenJPEG openJpeg = OpenJPEGFactory.getIntance();
        bitmaps[i] = openJpeg.DecodeToIBitMap(result[0].AssetData);
      }
      else
      {
        bitmaps[i] = null;
      }
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.sim.imaging.IOpenJPEG$DecodeToImageResult

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.