set_pattern_color method

set_pattern_color

Sets the background color.

def set_pattern_color(self, pattern, color1, color2):
    ...
ParameterTypeDescription
patternBackgroundTypeThe pattern.
color1aspose.pydrawing.ColorThe foreground color.
color2aspose.pydrawing.ColorThe background color. Only works when pattern is not BackgroundType.None and BackgroundType.Solid.

See Also