com.mebigfatguy.pixelle
Class PixelleTransformer

java.lang.Object
  extended by com.mebigfatguy.pixelle.PixelleTransformer

public class PixelleTransformer
extends java.lang.Object

transforms one bitmap into another based on the algorithms defined by the user.


Constructor Summary
PixelleTransformer(PixelleImage[] images, java.util.Map<PixelleComponent,java.lang.String> algos, ImageType imageType, java.awt.Point newDimension)
          constructions a transformer given a source bitmap and algorithms
 
Method Summary
static java.util.Map<PixelleComponent,java.lang.String> getSampleTransform()
          builds a sample set of algorithms that creates a 'pleasing' image
 PixelleImage transform()
          transforms the image into a destination image based on the algorithms supplied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PixelleTransformer

public PixelleTransformer(PixelleImage[] images,
                          java.util.Map<PixelleComponent,java.lang.String> algos,
                          ImageType imageType,
                          java.awt.Point newDimension)
constructions a transformer given a source bitmap and algorithms

Parameters:
images - the source images
algos - the algorithms for the color components
newDimension - the desired dimension of the output image
Method Detail

getSampleTransform

public static java.util.Map<PixelleComponent,java.lang.String> getSampleTransform()
builds a sample set of algorithms that creates a 'pleasing' image

Returns:
a set of transformation algorithms

transform

public PixelleImage transform()
                       throws PixelleTransformException
transforms the image into a destination image based on the algorithms supplied. It does this by generating classes that implement the PixelleExpr interface, and dynamically loads them to create the new pixel values.

Returns:
the destination bitmap
Throws:
PixelleTransformException - if a failure occurs reading, writing or transforming a bitmap


Copyright © 2008 MeBigFatGuy.com. All Rights Reserved.