GF4J 0.9.4 Beta

gameframe.graphics
Class BitmapEffect

java.lang.Object
  |
  +--gameframe.graphics.BitmapEffect
Direct Known Subclasses:
ColorReplacementEffect, EffectGroup, FlipEffect, MirrorEffect, RotationEffect, ScaleEffect

public abstract class BitmapEffect
extends java.lang.Object

Baseclass for all bitmap effect classes that process bitmaps.

Since:
GameFrame for Java 0.9.3
Version:
GameFrame for Java 0.9.4
Author:
Pasi Keränen 18. Mar 2000

Constructor Summary
BitmapEffect()
           
 
Method Summary
abstract  BitmapData processData(BitmapData data)
          Processes the given bitmap data in some way.
abstract  void reset()
          Resets the effects settings.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitmapEffect

public BitmapEffect()
Method Detail

processData

public abstract BitmapData processData(BitmapData data)
Processes the given bitmap data in some way. The given bitmap data may or may not be changed (depends on the effect implementation), the resulting bitmap data that is resulted might or might not be the same object that was given as the source data.
Parameters:
data - The raw bitmap data that is to be processed.
Returns:
The resulting bitmap data.

reset

public abstract void reset()
Resets the effects settings.
Since:
GameFrame for Java 0.9.3

GF4J 0.9.4 Beta