---
title: "Color..::.FromRgb Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromRgb_3_6e8d960c.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Color.FromRgb Method 
 
Returns [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) class instance constructed from all 3 color channels (red, green, and blue).
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Shared Function FromRgb ( _red As Byte, _green As Byte, _blue As Byte _
) As RgbColor
```
 
```csharp
public static RgbColor FromRgb(byte red,byte green,byte blue
)
```
 
### Parameters
 
 - red
     - Type: [System.Byte](http://msdn2.microsoft.com/en-us/yyb1w04y)
Red channel value.

 - green
     - Type: [System.Byte](http://msdn2.microsoft.com/en-us/yyb1w04y)
Green channel value.

 - blue
     - Type: [System.Byte](http://msdn2.microsoft.com/en-us/yyb1w04y)
Blue channel value.
 
### Return Value
 [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) class instance constructed from given channels.
 
## Remarks
 You can also use extended version of this method, i.e. [FromRgb32(Int32, Int32, Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromRgb32_3_9738cf02.htm.md). If you need also supply alpha channel, you can use [FromArgb(Byte, Byte, Byte, Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromArgb_4_ef9e6d81.htm.md) method.
   
## See Also

### Reference

- [Color Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
