---
title: "Color..::.FromArgb Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromArgb_4_ef9e6d81.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.FromArgb Method 
 
Returns [RgbColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_RgbColor.htm.md) class instance constructed from all 4 channels (alpha, 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 FromArgb ( _alpha As Byte, _red As Byte, _green As Byte, _blue As Byte _
) As RgbColor
```
 
```csharp
public static RgbColor FromArgb(byte alpha,byte red,byte green,byte blue
)
```
 
### Parameters
 
 - alpha
     - Type: [System.Byte](http://msdn2.microsoft.com/en-us/yyb1w04y)
Alpha channel value.

 - 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. [FromArgb32(Int32, Int32, Int32, Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromArgb32_4_951ae041.htm.md). If you do not care about alpha channel, you can also use [FromRgb(Byte, Byte, Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromRgb_3_6e8d960c.htm.md) method.
 
## Examples
  
```
Dim rgb As Aurigma.GraphicsMill.RgbColor = _
 Aurigma.GraphicsMill.Color.FromArgb(120, 255, 0, 0)
```
 
```csharp
Aurigma.GraphicsMill.RgbColor rgb = 
    Aurigma.GraphicsMill.Color.FromArgb(120, 255, 0, 0);
```
   
## 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)
