com.meltingice.caman
Class CamanJ

java.lang.Object
  extended by com.meltingice.caman.CamanJ

public class CamanJ
extends java.lang.Object

The main CamanJ class that is interacted with.

Version:
1.0
Author:
Ryan LeFevre

Constructor Summary
CamanJ(java.lang.String file)
          Creates a new standard CamanJ object
 
Method Summary
 CamanFilter filter(java.lang.String name)
          Loads a filter and returns it so that its parameters (if any) can be set.
 void preset(java.lang.String name)
          Loads and applies a preset set of filters to the current image.
 void render()
          Goes through all of the filters (in order) and applies them to the image.
 java.awt.image.BufferedImage save()
          Saves the modified image to a new BufferedImage object.
 void save(java.lang.String outFile)
          Saves the modified image to a file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamanJ

public CamanJ(java.lang.String file)
Creates a new standard CamanJ object

Parameters:
file - The filename of the image to load
Method Detail

filter

public CamanFilter filter(java.lang.String name)
Loads a filter and returns it so that its parameters (if any) can be set.

Parameters:
name - The name of the filter
Returns:
The filter object

preset

public void preset(java.lang.String name)
Loads and applies a preset set of filters to the current image.

Parameters:
name - The name of the preset

render

public void render()
Goes through all of the filters (in order) and applies them to the image.


save

public java.awt.image.BufferedImage save()
Saves the modified image to a new BufferedImage object. Will automatically call render() if it has not been called already.

Returns:
The new BufferedImage object

save

public void save(java.lang.String outFile)
Saves the modified image to a file.

Parameters:
outFile - The path to the output file.