---
title: "Color..::.FromAGrayScale32 Method (Int32)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromAGrayScale32_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.FromAGrayScale32 Method (Int32)
 
Returns [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md) class instance constructed from numeric 32-bit representation of grayscale value with alpha channel.
 
**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 ( _alphaGrayScale As Integer _
) As GrayScaleColor
```
 
```csharp
public static GrayScaleColor FromAGrayScale32(int alphaGrayScale
)
```
 
### Parameters
 
 - alphaGrayScale
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Numeric representation of the alpha grayscale value.
 
### Return Value
 [GrayScaleColor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.htm.md) class instance constructed from given number.
 
## Remarks
 Low byte of this 32-bit value contains intensity level, next byte contains alpha value. The rest higher bytes are ignored. You can also use extended version of this method, i.e. [FromAGrayScale64(Int64)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_FromAGrayScale64_1_5f4f955f.htm.md).
   
## 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)
