ColorRange
Leave feedback
On this page
Inheritance: java.lang.Object
public class ColorRange
Represents a range of colors. Specifies ranges using HSB representation of RGB color.
| Constructor | Description |
|---|---|
| ColorRange() | Initializes a new instance of the [ColorRange](../../com.groupdocs.watermark.search/colorrange) class. |
| ColorRange(Color exactColor) | Initializes a new instance of the [ColorRange](../../com.groupdocs.watermark.search/colorrange) class with a specified exact color. |
| Method | Description |
|---|---|
| getMinHue() | Gets the starting hue value, in degrees. |
| setMinHue(float value) | Sets the starting hue value, in degrees. |
| getMaxHue() | Gets the ending hue value, in degrees. |
| setMaxHue(float value) | Sets the ending hue value, in degrees. |
| getMinSaturation() | Gets the starting saturation value. |
| setMinSaturation(float value) | Sets the starting saturation value. |
| getMaxSaturation() | Gets the ending saturation value. |
| setMaxSaturation(float value) | Sets the ending saturation value. |
| getMinBrightness() | Gets the starting brightness value. |
| setMinBrightness(float value) | Sets the starting brightness value. |
| getMaxBrightness() | Gets the ending brightness value. |
| setMaxBrightness(float value) | Sets the ending brightness value. |
| isEmpty() | Gets a value indicating whether only the empty color is in range. |
| setEmpty(boolean value) | Sets a value indicating whether only the empty color is in range. |
public ColorRange()
Initializes a new instance of the [ColorRange](../../com.groupdocs.watermark.search/colorrange) class.
public ColorRange(Color exactColor)
Initializes a new instance of the [ColorRange](../../com.groupdocs.watermark.search/colorrange) class with a specified exact color.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| exactColor | Color | The exact color from which the range is created. |
public final float getMinHue()
Gets the starting hue value, in degrees.
Returns: float - The starting hue value, in degrees.
public final void setMinHue(float value)
Sets the starting hue value, in degrees.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | The starting hue value, in degrees. |
public final float getMaxHue()
Gets the ending hue value, in degrees.
Returns: float - The ending hue value, in degrees.
public final void setMaxHue(float value)
Sets the ending hue value, in degrees.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | The ending hue value, in degrees. |
public final float getMinSaturation()
Gets the starting saturation value.
Returns: float - The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated.
public final void setMinSaturation(float value)
Sets the starting saturation value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated. |
public final float getMaxSaturation()
Gets the ending saturation value.
Returns: float - The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated.
public final void setMaxSaturation(float value)
Sets the ending saturation value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated. |
public final float getMinBrightness()
Gets the starting brightness value.
Returns: float - The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.
public final void setMinBrightness(float value)
Sets the starting brightness value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white. |
public final float getMaxBrightness()
Gets the ending brightness value.
Returns: float - The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.
public final void setMaxBrightness(float value)
Sets the ending brightness value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white. |
public final boolean isEmpty()
Gets a value indicating whether only the empty color is in range.
Returns: boolean - True if only the empty color is in range (HSB ranges are ignored); otherwise, false.
public final void setEmpty(boolean value)
Sets a value indicating whether only the empty color is in range.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | True if only the empty color is in range (HSB ranges are ignored); otherwise, false. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.