---
title: "Color..::.FromAGrayScale32 Method (Int32, Int32)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromAGrayScale32_2_22dcb54d.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.FromAGrayScale32 Method (Int32, Int32)
 
Returns [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md) class instance constructed from given luminosity and alpha channel values.
 
**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 FromAGrayScale32 ( _alpha As Integer, _gray As Integer _
) As GrayScaleColor
```
 
```csharp
public static GrayScaleColor FromAGrayScale32(int alpha,int gray
)
```
 
### Parameters
 
 - alpha
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Alpha channel value.

 - gray
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Luminosity channel value.
 
### Return Value
 [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md) class instance constructed from given channels.
 
## Remarks
 You can also use non-extended version of this method, i.e. [FromAGrayScale(Byte, Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromAGrayScale_2_db855281.htm.md). If you do not care about alpha channel, you can also use [FromGrayScale32(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromGrayScale32_1_e1836fc4.htm.md) method.
   
## See Also

### Reference

- [Color Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
- [FromAGrayScale32 Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Color_FromAGrayScale32.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
