Package javax.media.jai

Examples of javax.media.jai.PlanarImage.dispose()


            } catch(Exception e) {
                // Ignore it.
            }
        } else {
            // Invoke dispose() directly.
            src.dispose();
        }
    }
}
View Full Code Here


  private static ImageRecord setUsingJAI(String file) {
    ImageRecord dim = new ImageRecord(file);
    PlanarImage pi = JAI.create("fileload", file);
    dim.setWidth(pi.getWidth());
    dim.setHeight(pi.getHeight());
    pi.dispose();
    pi = null;
    return dim;
  }
}
View Full Code Here

    ///////////////////////////////////////////////////////////////////////
    final Iterator<RenderedImage> it=intermediateOps.iterator();
    while(it.hasNext())
    {
      final PlanarImage image= PlanarImage.wrapRenderedImage((RenderedImage)it.next());
      image.dispose();
    }
    super.dispose(force);
   
  }
View Full Code Here

      outZ.write(new Double(hist.getStandardDeviation()[0]).toString()
          .getBytes());
      ((ZipOutputStream) dest).closeEntry();
    }

    histogramImage.dispose();
  }

  /**
   * Writes the world file (.DMW)
   *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.