## Color::FromArgb(int32_t, int32_t, int32_t, int32_t) method


Gets valid pdf [Color](../) object from RGB color components.

```cpp
static System::SharedPtr<Color> Aspose::Pdf::Color::FromArgb(int32_t a, int32_t r, int32_t g, int32_t b)
```


| Parameter | Type | Description |
| --- | --- | --- |
| a | int32_t | The alpha component value (value 0 - 255). |
| r | int32_t | The Red color component (value 0 - 255). |
| g | int32_t | The Green color component (value 0 - 255). |
| b | int32_t | The Blue color component (value 0 - 255). |

### ReturnValue

[Color](../) object with each component value in [0..255] range.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Color](../)
* Class [Color](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## Color::FromArgb(int32_t, int32_t, int32_t) method


Gets valid pdf [Color](../) object from RGB color components.

```cpp
static System::SharedPtr<Color> Aspose::Pdf::Color::FromArgb(int32_t r, int32_t g, int32_t b)
```


| Parameter | Type | Description |
| --- | --- | --- |
| r | int32_t | The Red color component (value 0 - 255). |
| g | int32_t | The Green color component (value 0 - 255). |
| b | int32_t | The Blue color component (value 0 - 255). |

### ReturnValue

[Color](../) object with each component value in [0..255] range.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Color](../)
* Class [Color](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
