Aspose::Page::XPS::XpsDocument::CreateColor method
Contents
[
Hide
]XpsDocument::CreateColor(float, float, float, float) method
Creates a new color in scRGB color space.
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(float a, float r, float g, float 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. |
ReturnValue
New color.
See Also
- Typedef SharedPtr
- Class XpsColor
- Class XpsDocument
- Namespace Aspose::Page::XPS
- Library Aspose.Page for C++
XpsDocument::CreateColor(float, float, float) method
Creates a new color in scRGB color space.
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(float r, float g, float b)
| Parameter | Type | Description |
|---|---|---|
| r | float | The red color component. |
| g | float | The green color component. |
| b | float | The blue color component. |
ReturnValue
New color.
See Also
- Typedef SharedPtr
- Class XpsColor
- Class XpsDocument
- Namespace Aspose::Page::XPS
- Library Aspose.Page for C++
XpsDocument::CreateColor(int32_t, int32_t, int32_t, int32_t) method
Creates a new color in sRGB color space.
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(int32_t a, int32_t r, int32_t g, int32_t b)
| Parameter | Type | Description |
|---|---|---|
| a | int32_t | The alpha color component. |
| r | int32_t | The red color component. |
| g | int32_t | The green color component. |
| b | int32_t | The blue color component. |
ReturnValue
New color.
See Also
- Typedef SharedPtr
- Class XpsColor
- Class XpsDocument
- Namespace Aspose::Page::XPS
- Library Aspose.Page for C++
XpsDocument::CreateColor(int32_t, int32_t, int32_t) method
Creates a new color in sRGB color space.
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(int32_t r, int32_t g, int32_t b)
| Parameter | Type | Description |
|---|---|---|
| r | int32_t | The red color component. |
| g | int32_t | The green color component. |
| b | int32_t | The blue color component. |
ReturnValue
New color.
See Also
- Typedef SharedPtr
- Class XpsColor
- Class XpsDocument
- Namespace Aspose::Page::XPS
- Library Aspose.Page for C++
XpsDocument::CreateColor(System::Drawing::Color) method
Creates a new color.
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(System::Drawing::Color color)
| Parameter | Type | Description |
|---|---|---|
| color | System::Drawing::Color | A native color instance for RGB color. |
ReturnValue
New color.
See Also
- Typedef SharedPtr
- Class XpsColor
- Class Color
- Class XpsDocument
- Namespace Aspose::Page::XPS
- Library Aspose.Page for C++
XpsDocument::CreateColor(System::SharedPtr<XpsModel::XpsIccProfile>, const System::ArrayPtr<float>&) method
Creates a new color in ICC based color space.
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(System::SharedPtr<XpsModel::XpsIccProfile> iccProfile, const System::ArrayPtr<float> &components)
| Parameter | Type | Description |
|---|---|---|
| iccProfile | System::SharedPtr<XpsModel::XpsIccProfile> | The ICC profile resource. |
| components | const System::ArrayPtr<float>& | Color components. |
ReturnValue
New color.
See Also
- Typedef SharedPtr
- Class XpsColor
- Class XpsIccProfile
- Typedef ArrayPtr
- Class XpsDocument
- Namespace Aspose::Page::XPS
- Library Aspose.Page for C++
XpsDocument::CreateColor(System::String, const System::ArrayPtr<float>&) method
Creates a new color in ICC based color space.
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::XpsDocument::CreateColor(System::String path, const System::ArrayPtr<float> &components)
| Parameter | Type | Description |
|---|---|---|
| path | System::String | The path to the ICC profile. |
| components | const System::ArrayPtr<float>& | Color components. |
ReturnValue
New color.
See Also
- Typedef SharedPtr
- Class XpsColor
- Class String
- Typedef ArrayPtr
- Class XpsDocument
- Namespace Aspose::Page::XPS
- Library Aspose.Page for C++