com.mebigfatguy.polycasso
Class PNGSaver

java.lang.Object
  extended by com.mebigfatguy.polycasso.PNGSaver
All Implemented Interfaces:
Saver

public class PNGSaver
extends java.lang.Object
implements Saver

generates a png file from the set of polygons


Constructor Summary
PNGSaver()
           
 
Method Summary
 void save(java.lang.String fileName, java.awt.Dimension imageSize, PolygonData[] data)
          saves the set of polygons in a png file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PNGSaver

public PNGSaver()
Method Detail

save

public void save(java.lang.String fileName,
                 java.awt.Dimension imageSize,
                 PolygonData[] data)
          throws java.io.IOException
saves the set of polygons in a png file

Specified by:
save in interface Saver
Parameters:
fileName - the name of the file to write to
imageSize - the dimension of the image
data - the polygons to draw
Throws:
java.io.IOException - if the file can't be saved


Copyright © 2009-2010 MeBigFatGuy.com. All Rights Reserved.