Class AwtImageDataFactory


  • class AwtImageDataFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ImageData create​(java.awt.Image image, java.awt.Color color)
      Gets an instance of an Image from a Image
      static ImageData create​(java.awt.Image image, java.awt.Color color, boolean forceBW)
      Gets an instance of an Image from a java.awt.Image.
      • Methods inherited from class java.lang.Object

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

      • AwtImageDataFactory

        AwtImageDataFactory()
    • Method Detail

      • create

        public static ImageData create​(java.awt.Image image,
                                       java.awt.Color color)
                                throws java.io.IOException
        Gets an instance of an Image from a Image
        Parameters:
        image - the Image to convert
        color - if different from null the transparency pixels are replaced by this color
        Returns:
        RawImage
        Throws:
        java.io.IOException
      • create

        public static ImageData create​(java.awt.Image image,
                                       java.awt.Color color,
                                       boolean forceBW)
                                throws java.io.IOException
        Gets an instance of an Image from a java.awt.Image.
        Parameters:
        image - the java.awt.Image to convert
        color - if different from null the transparency pixels are replaced by this color
        forceBW - if true the image is treated as black and white
        Returns:
        RawImage
        Throws:
        java.io.IOException