## PageAPI::CreateColor(float, float, float, float) method


Creates a new color in scRGB color space.

```cpp
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::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](../../../system/sharedptr/)
* Class [XpsColor](../../../aspose.page.xps.xpsmodel/xpscolor/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
## PageAPI::CreateColor(float, float, float) method


Creates a new color in scRGB color space.

```cpp
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::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](../../../system/sharedptr/)
* Class [XpsColor](../../../aspose.page.xps.xpsmodel/xpscolor/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
## PageAPI::CreateColor(int32_t, int32_t, int32_t, int32_t) method


Creates a new color in sRGB color space.

```cpp
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::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](../../../system/sharedptr/)
* Class [XpsColor](../../../aspose.page.xps.xpsmodel/xpscolor/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
## PageAPI::CreateColor(int32_t, int32_t, int32_t) method


Creates a new color in sRGB color space.

```cpp
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::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](../../../system/sharedptr/)
* Class [XpsColor](../../../aspose.page.xps.xpsmodel/xpscolor/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
## PageAPI::CreateColor(System::Drawing::Color) method


Creates a new color.

```cpp
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::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](../../../system/sharedptr/)
* Class [XpsColor](../../../aspose.page.xps.xpsmodel/xpscolor/)
* Class [Color](../../../system.drawing/color/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
## PageAPI::CreateColor(System::SharedPtr\<XpsModel::XpsIccProfile\>, const System::ArrayPtr\<float\>\&) method


Creates a new color in ICC based color space.

```cpp
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::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](../../../system/sharedptr/)
* Class [XpsColor](../../../aspose.page.xps.xpsmodel/xpscolor/)
* Class [XpsIccProfile](../../../aspose.page.xps.xpsmodel/xpsiccprofile/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
## PageAPI::CreateColor(System::String, const System::ArrayPtr\<float\>\&) method


Creates a new color in ICC based color space.

```cpp
System::SharedPtr<XpsModel::XpsColor> Aspose::Page::XPS::Features::EventBasedModifications::PageAPI::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](../../../system/sharedptr/)
* Class [XpsColor](../../../aspose.page.xps.xpsmodel/xpscolor/)
* Class [String](../../../system/string/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [PageAPI](../)
* Namespace [Aspose::Page::XPS::Features::EventBasedModifications](../../)
* Library [Aspose.Page for C++](../../../)
