create_color method

create_color

Creates a new color.

Returns

New color.

def create_color(self, color):
    ...
ParameterTypeDescription
coloraspose.pydrawing.ColorA native color instance for RGB color.

create_color

Creates a new color in ICC based color space.

Returns

New color.

def create_color(self, path, components):
    ...
ParameterTypeDescription
pathstrThe path to the ICC profile.
componentslistColor components.

create_color

Creates a new color in ICC based color space.

Returns

New color.

def create_color(self, icc_profile, components):
    ...
ParameterTypeDescription
icc_profileaspose.page.xps.xpsmodel.XpsIccProfileThe ICC profile resource.
componentslistColor components.

create_color

Creates a new color in sRGB color space.

Returns

New color.

def create_color(self, r, g, b):
    ...
ParameterTypeDescription
rintThe red color component.
gintThe green color component.
bintThe blue color component.

create_color

Creates a new color in scRGB color space.

Returns

New color.

def create_color(self, r, g, b):
    ...
ParameterTypeDescription
rfloatThe red color component.
gfloatThe green color component.
bfloatThe blue color component.

create_color

Creates a new color in sRGB color space.

Returns

New color.

def create_color(self, a, r, g, b):
    ...
ParameterTypeDescription
aintThe alpha color component.
rintThe red color component.
gintThe green color component.
bintThe blue color component.

create_color

Creates a new color in scRGB color space.

Returns

New color.

def create_color(self, a, r, g, b):
    ...
ParameterTypeDescription
afloatThe alpha color component.
rfloatThe red color component.
gfloatThe green color component.
bfloatThe blue color component.

See Also