magoffin.matt.ma2.image.jmagick
Class RotateEffect
java.lang.Object
magoffin.matt.ma2.image.jmagick.BaseJMagickMediaEffect
magoffin.matt.ma2.image.jmagick.RotateEffect
- All Implemented Interfaces:
- JMagickMediaEffect, MediaEffect
public class RotateEffect
- extends BaseJMagickMediaEffect
Effect that rotates an image, based on the degrees specified by
the MediaEffect.MEDIA_REQUEST_PARAM_ROTATE_DEGREES
request
parameter.
- Version:
- $Revision: 176 $ $Date: 2008-12-28 14:33:18 +1300 (Sun, 28 Dec 2008) $
- Author:
- matt.magoffin
Field Summary |
static java.lang.String |
ROTATE_KEY
The key for this effect. |
Method Summary |
magick.MagickImage |
applyEffect(MediaItem item,
MediaRequest request,
magick.ImageInfo inInfo,
magick.MagickImage image)
Apply effect with ImageMagick. |
java.lang.String |
getKey()
Get the key for this effect. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROTATE_KEY
public static final java.lang.String ROTATE_KEY
- The key for this effect.
- See Also:
- Constant Field Values
RotateEffect
public RotateEffect()
applyEffect
public magick.MagickImage applyEffect(MediaItem item,
MediaRequest request,
magick.ImageInfo inInfo,
magick.MagickImage image)
- Description copied from interface:
JMagickMediaEffect
- Apply effect with ImageMagick.
- Parameters:
item
- the MediaItem the effect is being applied torequest
- the requestinInfo
- the ImageInfo used to open the imageimage
- the current ImageMagick MagickImage
- Returns:
- the resulting image
getKey
public java.lang.String getKey()
- Description copied from interface:
MediaEffect
- Get the key for this effect.
Keys uniquely describe the implementation and
function of the effect. The implementation key should come first,
and the function key at the end. Some standard function key values are
defined in this API: MediaEffect.KEY_SCALE
for re-sizing and MediaEffect.KEY_ROTATE
for rotating.
For example, a key might look like image.awt.rotate
for
an image rotation effect based on a Java AWT implementation.
- Returns:
- the effect key