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