Class 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" 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

      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  
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEBUG

        private static final boolean DEBUG
      • USE_MAGICK

        private static final boolean USE_MAGICK
      • nativeOp

        private static java.lang.Class[] nativeOp
    • Constructor Detail

      • MagickAccelerator

        MagickAccelerator()
    • 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)