__init__ constructor

On this page

init

Initializes a new instance of the ColorRange class.

def __init__(self):
    ...

Example

from groupdocs.watermark.search.search_criteria import ColorRange

# Create a default color range
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

init

Initializes a new instance of ColorRange with a specified exact color.

def __init__(self, exact_color):
    ...
Parameter Type Description
exact_color Color The exact color from which the range is created.

See Also

On this page