Package com.twelvemonkeys.image
Class MagickAccelerator
- java.lang.Object
-
- com.twelvemonkeys.image.MagickAccelerator
-
final class MagickAccelerator extends java.lang.Object
This class accelerates certain graphics operations, using JMagick and ImageMagick, if available. If those libraries are not installed, this class silently does nothing.Set the system property
"com.twelvemonkeys.image.accel"
tofalse
, to disable, even if JMagick is installed. Set the system property"com.twelvemonkeys.image.magick.debug"
to- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/image/MagickAccelerator.java#3 $
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
DEBUG
private static java.lang.Class[]
nativeOp
private static int
RESAMPLE_OP
private static boolean
USE_MAGICK
-
Constructor Summary
Constructors Constructor Description MagickAccelerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.image.BufferedImage
filter(java.awt.image.BufferedImageOp pOperation, java.awt.image.BufferedImage pInput, java.awt.image.BufferedImage pOutput)
private static int
getNativeOpIndex(java.lang.Class pOpClass)
private static java.awt.image.BufferedImage
resampleMagick(java.awt.image.BufferedImage pSrc, int pWidth, int pHeight, int pFilterType)
private static boolean
useMagick()
-
-
-
Field Detail
-
DEBUG
private static final boolean DEBUG
-
USE_MAGICK
private static final boolean USE_MAGICK
-
RESAMPLE_OP
private static final int RESAMPLE_OP
- See Also:
- Constant Field Values
-
nativeOp
private static java.lang.Class[] nativeOp
-
-
Method Detail
-
useMagick
private static boolean useMagick()
-
getNativeOpIndex
private static int getNativeOpIndex(java.lang.Class pOpClass)
-
filter
public static java.awt.image.BufferedImage filter(java.awt.image.BufferedImageOp pOperation, java.awt.image.BufferedImage pInput, java.awt.image.BufferedImage pOutput)
-
resampleMagick
private static java.awt.image.BufferedImage resampleMagick(java.awt.image.BufferedImage pSrc, int pWidth, int pHeight, int pFilterType)
-
-