ColorRange class
Leave feedback
On this page
Represents a range of colors using HSB representation of RGB color.
The ColorRange type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the ColorRange class. |
| init | Initializes a new instance of ColorRange with a specified exact color. |
| Property | Description |
|---|---|
| is_empty | The flag indicating whether only the empty color is in range. |
| max_brightness | The ending brightness value, ranging from 0.0 (black) to 1.0 (white). |
| max_hue | The ending hue value, in degrees. |
| max_saturation | The ending saturation value. |
| min_brightness | The starting brightness value, ranging from 0.0 (black) to 1.0 (white). |
| min_hue | The starting hue value, in degrees. |
| min_saturation | The starting saturation value. |
from groupdocs.watermark.search.search_criteria import ColorRange
# Create a color range for foreground color matching
color_range = ColorRange()
color_range.min_hue = -15
color_range.max_hue = 15
color_range.min_brightness = 0.01
color_range.max_brightness = 0.99
Task guides that use ColorRange:
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.