Class JAIHelper


  • public class JAIHelper
    extends Object
    Helper class for JAI operations.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • JAIHelper

        public JAIHelper()
    • Method Detail

      • disableMediaLib

        public static void disableMediaLib()
        Disables the "java.lang.NoClassDefFoundError: com/sun/medialib/mlib/Image" exception.

        Taken from here
      • read

        public static javax.media.jai.RenderedOp read​(File file)
        Loads the specified file.
        Parameters:
        file - the file to load
        Returns:
        the image
      • read

        public static javax.media.jai.RenderedOp read​(String file)
        Loads the specified file.
        Parameters:
        file - the file to load
        Returns:
        the image