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. |
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 . |
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
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 torequest
- the requestsource
- the source BufferedImage
- Returns:
- the updated
BufferedImage