Class AbstractImageFilterProvider

    • Constructor Detail

      • AbstractImageFilterProvider

        public AbstractImageFilterProvider()
    • Method Detail

      • imageToBufferedImage

        public static BufferedImage imageToBufferedImage​(Image image,
                                                         int type)
        Turns an Image into a BufferedImage.
        Parameters:
        img - the image to convert
        Returns:
        the buffered image
      • check

        protected void check()
        Hook method for performing checks.

        Default implementation does nothing.
      • doGenerate

        protected abstract ImageFilter doGenerate​(BufferedImage img)
        Generates the actor ImageFilter instance.
        Parameters:
        img - the buffered image to filter
        Returns:
        the image filter instance