com.mebigfatguy.polycasso
Class ImageCompleter

java.lang.Object
  extended by com.mebigfatguy.polycasso.ImageCompleter
All Implemented Interfaces:
java.lang.Runnable

public class ImageCompleter
extends java.lang.Object
implements java.lang.Runnable

a class that transforms the current best polygon representation to the real image thru a time lapse blend transformation of the images


Constructor Summary
ImageCompleter(ImageGenerator generator, java.awt.image.BufferedImage image, PolygonData[] bestData, java.awt.Dimension size)
          create a completer to move the image from polygon form to real form
 
Method Summary
 void run()
          implements the Runnable interface to gradually fade in the real image over time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCompleter

public ImageCompleter(ImageGenerator generator,
                      java.awt.image.BufferedImage image,
                      PolygonData[] bestData,
                      java.awt.Dimension size)
create a completer to move the image from polygon form to real form

Parameters:
generator - the image generator that this completer is working for
image - the target image that will eventually be drawn
bestData - the best approximation the program reached
size - the image size
Method Detail

run

public void run()
implements the Runnable interface to gradually fade in the real image over time

Specified by:
run in interface java.lang.Runnable


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