visualize
Class ImageSaver

java.lang.Object
  extended by visualize.ImageSaver

public class ImageSaver
extends java.lang.Object

The Class ImageSaver is a small class responsible for rendering the content of the VisCanvas into a PNG-File.

Version:
1.1
Author:
Fabian Hollaus

Constructor Summary
ImageSaver(javax.media.opengl.GL gl, java.lang.String fileName, int width, int height)
          Creates a new ImageSaver object and saves the content of the VisCanvas into a PNG-File.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageSaver

public ImageSaver(javax.media.opengl.GL gl,
                  java.lang.String fileName,
                  int width,
                  int height)
Creates a new ImageSaver object and saves the content of the VisCanvas into a PNG-File.

Parameters:
gl - the Open-GL object.
fileName - the name of the file.
width - the width of the canvas that is going to be saved.
height - the height of the canvas that is going to be saved.