Package com.twelvemonkeys.image
Class MagickAccelerator
java.lang.Object
com.twelvemonkeys.image.MagickAccelerator
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"
to
false
, 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
FieldsModifier and TypeFieldDescriptionprivate static final boolean
private static Class[]
private static final int
private static final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImage
filter
(BufferedImageOp pOperation, BufferedImage pInput, BufferedImage pOutput) private static int
getNativeOpIndex
(Class pOpClass) private static BufferedImage
resampleMagick
(BufferedImage pSrc, int pWidth, int pHeight, int pFilterType) private static boolean
-
Field Details
-
DEBUG
private static final boolean DEBUG -
USE_MAGICK
private static final boolean USE_MAGICK -
RESAMPLE_OP
private static final int RESAMPLE_OP- See Also:
-
nativeOp
-
-
Constructor Details
-
MagickAccelerator
MagickAccelerator()
-
-
Method Details
-
useMagick
private static boolean useMagick() -
getNativeOpIndex
-
filter
public static BufferedImage filter(BufferedImageOp pOperation, BufferedImage pInput, BufferedImage pOutput) -
resampleMagick
private static BufferedImage resampleMagick(BufferedImage pSrc, int pWidth, int pHeight, int pFilterType)
-