Jazz3D API


com.sygem.visimagik
Class FilterFader

java.lang.Object
  |
  +--com.sygem.visimagik.Filter
        |
        +--com.sygem.visimagik.FilterFader

public class FilterFader
extends Filter

Fades between one image and another.

Version:
3.0a
Author:
SyGem Software
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

TILED

public static final int TILED
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

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.

execute

public void execute(int[] graphics_array)
Perform the image processing.
Parameters:
graphics_array - The array to perform the processing on
See Also:
Visimagik

©2001 SyGem Software