PageAPI.CreateColor
Contents
[
Hide
]CreateColor(Color)
Creates a new color.
public XpsColor CreateColor(Color color)
Parameter | Type | Description |
---|---|---|
color | Color | A native color instance for RGB color. |
Return Value
New color.
See Also
- class XpsColor
- class PageAPI
- namespace Aspose.Page.XPS.Features.EventBasedModifications
- assembly Aspose.Page
CreateColor(int, int, int, int)
Creates a new color in sRGB color space.
public XpsColor CreateColor(int a, int r, int g, int b)
Parameter | Type | Description |
---|---|---|
a | Int32 | The alpha color component. |
r | Int32 | The red color component. |
g | Int32 | The green color component. |
b | Int32 | The blue color component. |
Return Value
New color.
See Also
- class XpsColor
- class PageAPI
- namespace Aspose.Page.XPS.Features.EventBasedModifications
- assembly Aspose.Page
CreateColor(int, int, int)
Creates a new color in sRGB color space.
public XpsColor CreateColor(int r, int g, int b)
Parameter | Type | Description |
---|---|---|
r | Int32 | The red color component. |
g | Int32 | The green color component. |
b | Int32 | The blue color component. |
Return Value
New color.
See Also
- class XpsColor
- class PageAPI
- namespace Aspose.Page.XPS.Features.EventBasedModifications
- assembly Aspose.Page
CreateColor(float, float, float, float)
Creates a new color in scRGB color space.
public XpsColor CreateColor(float a, float r, float g, float b)
Parameter | Type | Description |
---|---|---|
a | Single | The alpha color component. |
r | Single | The red color component. |
g | Single | The green color component. |
b | Single | The blue color component. |
Return Value
New color.
See Also
- class XpsColor
- class PageAPI
- namespace Aspose.Page.XPS.Features.EventBasedModifications
- assembly Aspose.Page
CreateColor(float, float, float)
Creates a new color in scRGB color space.
public XpsColor CreateColor(float r, float g, float b)
Parameter | Type | Description |
---|---|---|
r | Single | The red color component. |
g | Single | The green color component. |
b | Single | The blue color component. |
Return Value
New color.
See Also
- class XpsColor
- class PageAPI
- namespace Aspose.Page.XPS.Features.EventBasedModifications
- assembly Aspose.Page
CreateColor(string, params float[])
Creates a new color in ICC based color space.
public XpsColor CreateColor(string path, params float[] components)
Parameter | Type | Description |
---|---|---|
path | String | The path to the ICC profile. |
components | Single[] | Color components. |
Return Value
New color.
See Also
- class XpsColor
- class PageAPI
- namespace Aspose.Page.XPS.Features.EventBasedModifications
- assembly Aspose.Page
CreateColor(XpsIccProfile, params float[])
Creates a new color in ICC based color space.
public XpsColor CreateColor(XpsIccProfile iccProfile, params float[] components)
Parameter | Type | Description |
---|---|---|
iccProfile | XpsIccProfile | The ICC profile resource. |
components | Single[] | Color components. |
Return Value
New color.
See Also
- class XpsColor
- class XpsIccProfile
- class PageAPI
- namespace Aspose.Page.XPS.Features.EventBasedModifications
- assembly Aspose.Page