Package jexer.bits

Class ImageUtils


  • public class ImageUtils
    extends java.lang.Object
    ImageUtils contains methods to: - Check if an image is fully transparent.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isFullyOpaque​(java.awt.image.BufferedImage image)
      Check if any pixels in an image have not-100% alpha value.
      static boolean isFullyTransparent​(java.awt.image.BufferedImage image)
      Check if any pixels in an image have not-0% alpha value.
      • Methods inherited from class java.lang.Object

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

      • ImageUtils

        public ImageUtils()
    • Method Detail

      • isFullyTransparent

        public static boolean isFullyTransparent​(java.awt.image.BufferedImage image)
        Check if any pixels in an image have not-0% alpha value.
        Returns:
        true if every pixel is fully transparent
      • isFullyOpaque

        public static boolean isFullyOpaque​(java.awt.image.BufferedImage image)
        Check if any pixels in an image have not-100% alpha value.
        Returns:
        true if every pixel is fully transparent