package ColorGradient; import DISCOVAmetrics.DISCOVAmetrics; import java.awt.Color; import javax.imageio.*; import javax.imageio.ImageIO; import java.awt.image.*; import javax.media.j3d.*; import javax.vecmath.*; //used by exporting image import java.awt.image.BufferedImage; import java.io.FileOutputStream; import com.sun.image.codec.jpeg.*; import java.io.IOException; import javax.swing.*; import java.io.File; import java.io.*; import java.awt.*; /** *

Title: ExportGraphic.java

*

Description: Save the component as jpeg//png image

*

Copyright: Copyright (c) Sept. 2004

*

Company: Phenomenome Discoveries Inc

* @author : Li Zhang * @version 3.0 */ public class ExportGraphic { /* to find how many type images are supported in your computer String[] names = ImageIO.getWriterFormatNames() ; for (int i=0;i-->
Site hosted by Angelfire.com: Build your free website today!