ColorRange class

ColorRange class

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

The ColorRange type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the ColorRange class.
init Initializes a new instance of ColorRange with a specified exact color.

Properties

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.

Example

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

Guides

Task guides that use ColorRange:

See Also