magoffin.matt.ma2.image.awt
Interface AwtMediaEffect

All Superinterfaces:
MediaEffect
All Known Implementing Classes:
BaseAwtMediaEffect, BumpMapEffect, CompositeEffect, RotateEffect, ScaleEffect

public interface AwtMediaEffect
extends MediaEffect

An API for AWT-based implementations of MediaEffect.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Field Summary
static java.lang.String INPUT_BUFFERED_IMAGE_KEY
          The MediaRequest parameter key for the input BufferedImage object.
 
Fields inherited from interface magoffin.matt.ma2.MediaEffect
KEY_ROTATE, KEY_SCALE, KEY_WATERMARK, MEDIA_REQUEST_PARAM_ROTATE_DEGREES, MEDIA_REQUEST_PARAM_WATERMARK_RESOURCE
 
Method Summary
 java.awt.image.BufferedImage applyEffect(MediaItem item, MediaRequest request, java.awt.image.BufferedImage source)
          Apply an effect on a BufferedImage and return the result as a new BufferedImage.
 
Methods inherited from interface magoffin.matt.ma2.MediaEffect
apply, getKey
 

Field Detail

INPUT_BUFFERED_IMAGE_KEY

static final java.lang.String INPUT_BUFFERED_IMAGE_KEY
The MediaRequest parameter key for the input BufferedImage object.

See Also:
Constant Field Values
Method Detail

applyEffect

java.awt.image.BufferedImage applyEffect(MediaItem item,
                                         MediaRequest request,
                                         java.awt.image.BufferedImage source)
Apply an effect on a BufferedImage and return the result as a new BufferedImage.

If no change is made to the source BufferedImage then source can be returned from this method.

Parameters:
item - the MediaItem the effect is being applied to
request - the request
source - the source BufferedImage
Returns:
the updated BufferedImage