com.sygem.visimagik
Class FilterFader

java.lang.Object
  extended bycom.sygem.visimagik.Filter
      extended bycom.sygem.visimagik.FilterFader

public class FilterFader
extends Filter

Fades between one image and another.

Version:
3.0a
See Also:
Filter

Field Summary
static int STRETCHED
           
static int TILED
           
 
Constructor Summary
FilterFader(int[] image_array, int w, int h, int mode)
          Constructor.
 
Method Summary
 void execute(int[] graphics_array)
          Perform the image processing.
static void setFadeValue(int amount)
          Set the amount to fade in the new image.
 
Methods inherited from class com.sygem.visimagik.Filter
removeMask, setMask
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRETCHED

public static final int STRETCHED
See Also:
Constant Field Values

TILED

public static final int TILED
See Also:
Constant Field Values
Constructor Detail

FilterFader

public FilterFader(int[] image_array,
                   int w,
                   int h,
                   int mode)
Constructor. This is where the image we want to fade between is passed to the filter.

Parameters:
image_array - The image to be faded to
w - The width of the image
h - The height of the image
mode - One of the 2 fields specified above
See Also:
Texture
Method Detail

execute

public void execute(int[] graphics_array)
Perform the image processing.

Parameters:
graphics_array - The array to perform the processing on
See Also:
Visimagik

setFadeValue

public static void setFadeValue(int amount)
Set the amount to fade in the new image. The higher the value, the less of the original image can be seen.

Parameters:
amount - The amount of fade to apply.


Copyright © 1999-2006 SyGem Software. All Rights Reserved.