create_color method
Contents
[
Hide
]create_color
Creates a new color.
Returns
New color.
def create_color(self, color):
...
Parameter | Type | Description |
---|---|---|
color | aspose.pydrawing.Color | A 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):
...
Parameter | Type | Description |
---|---|---|
path | str | The path to the ICC profile. |
components | list | Color components. |
create_color
Creates a new color in ICC based color space.
Returns
New color.
def create_color(self, icc_profile, components):
...
Parameter | Type | Description |
---|---|---|
icc_profile | aspose.page.xps.xpsmodel.XpsIccProfile | The ICC profile resource. |
components | list | Color components. |
create_color
Creates a new color in sRGB color space.
Returns
New color.
def create_color(self, r, g, b):
...
Parameter | Type | Description |
---|---|---|
r | int | The red color component. |
g | int | The green color component. |
b | int | The blue color component. |
create_color
Creates a new color in scRGB color space.
Returns
New color.
def create_color(self, r, g, b):
...
Parameter | Type | Description |
---|---|---|
r | float | The red color component. |
g | float | The green color component. |
b | float | The blue color component. |
create_color
Creates a new color in sRGB color space.
Returns
New color.
def create_color(self, a, r, g, b):
...
Parameter | Type | Description |
---|---|---|
a | int | The alpha color component. |
r | int | The red color component. |
g | int | The green color component. |
b | int | The blue color component. |
create_color
Creates a new color in scRGB color space.
Returns
New color.
def create_color(self, a, r, g, b):
...
Parameter | Type | Description |
---|---|---|
a | float | The alpha color component. |
r | float | The red color component. |
g | float | The green color component. |
b | float | The blue color component. |
See Also
- module
aspose.page.xps
- class
XpsColor
- class
XpsDocument