com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class ColorRange



  • public class ColorRange
    extends Object

    Represents a range of colors. Specifies ranges using HSB representation of RGB color.

    • Constructor Detail

      • ColorRange

        public ColorRange()

        Initializes a new instance of the ColorRange class.

      • ColorRange

        public ColorRange(Color exactColor)

        Initializes a new instance of the ColorRange class.

        Parameters:
        exactColor - The exact color from which the range is created.
    • Method Detail

      • getMinHue

        public final float getMinHue()

        Gets the starting hue value, in degrees.

        Returns:
        The starting hue value, in degrees.
      • setMinHue

        public final void setMinHue(float value)

        Sets the starting hue value, in degrees.

        Parameters:
        value - The starting hue value, in degrees.
      • getMaxHue

        public final float getMaxHue()

        Gets the ending hue value, in degrees.

        Returns:
        The ending hue value, in degrees.
      • setMaxHue

        public final void setMaxHue(float value)

        Sets the ending hue value, in degrees.

        Parameters:
        value - The ending hue value, in degrees.
      • getMinSaturation

        public final float getMinSaturation()

        Gets the starting saturation value.

        Returns:
        The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated.
      • setMinSaturation

        public final void setMinSaturation(float value)

        Sets the starting saturation value.

        Parameters:
        value - The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated.
      • getMaxSaturation

        public final float getMaxSaturation()

        Gets the ending saturation value.

        Returns:
        The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated.
      • setMaxSaturation

        public final void setMaxSaturation(float value)

        Sets the ending saturation value.

        Parameters:
        value - The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated.
      • getMinBrightness

        public final float getMinBrightness()

        Gets the starting brightness value.

        Returns:
        The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.
      • setMinBrightness

        public final void setMinBrightness(float value)

        Sets the starting brightness value.

        Parameters:
        value - The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.
      • getMaxBrightness

        public final float getMaxBrightness()

        Gets the ending brightness value.

        Returns:
        The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.
      • setMaxBrightness

        public final void setMaxBrightness(float value)

        Sets the ending brightness value.

        Parameters:
        value - The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.
      • isEmpty

        public final boolean isEmpty()

        Gets a value indicating whether only the empty color is in range.

        Returns:
        True if only the empty color is in range (HSB ranges are ignored); otherwise, false.
      • setEmpty

        public final void setEmpty(boolean value)

        Sets a value indicating whether only the empty color is in range.

        Parameters:
        value - True if only the empty color is in range (HSB ranges are ignored); otherwise, false.