Class ColorInfo


  • public class ColorInfo
    extends java.lang.Object

    Describes pixel and encoding. ImageInfo can be created from ColorInfo by providing dimensions.

    It encodes how pixel bits describe alpha, transparency; color components red, blue, and green; and ColorSpace, the range and linearity of colors.

    • Constructor Detail

    • Method Detail

      • isOpaque

        public boolean isOpaque()
      • isGammaCloseToSRGB

        public boolean isGammaCloseToSRGB()
      • getColorType

        @NotNull
        public @NotNull ColorType getColorType()
      • getAlphaType

        @NotNull
        public @NotNull ColorAlphaType getAlphaType()
      • getColorSpace

        @Nullable
        public @Nullable ColorSpace getColorSpace()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • withColorType

        public ColorInfo withColorType​(@NotNull
                                       @NotNull ColorType _colorType)
        Returns:
        this.
      • withColorSpace

        public ColorInfo withColorSpace​(@Nullable
                                        @Nullable ColorSpace _colorSpace)
        Returns:
        this.