---
title: "Color..::.FromGrayScale32 Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromGrayScale32_1_e1836fc4.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.FromGrayScale32 Method 
 
Returns [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md) constructed from specified luminosity level.
 
**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 FromGrayScale32 ( _gray As Integer _
) As GrayScaleColor
```
 
```csharp
public static GrayScaleColor FromGrayScale32(int gray
)
```
 
### Parameters
 
 - gray
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Luminosity level value.
 
### Return Value
 [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md) constructed from specified luminosity level.
 
## Remarks
 You can also use non-extended version of this method, i.e. [FromGrayScale(Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromGrayScale_1_846cbb0c.htm.md). If you do not care about alpha channel, you can also use [FromGrayScale(Byte)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromGrayScale_1_846cbb0c.htm.md) method. If you need also supply alpha channel, you can use [FromAGrayScale32(Int32, Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromAGrayScale32_2_22dcb54d.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)
