---
title: "GrayScaleColor Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_GrayScaleColor.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/)

# GrayScaleColor Class
 
This class represents grayscale color value.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Class GrayScaleColor _Inherits Color
```
 
```csharp
public class GrayScaleColor : Color
```
 
## Remarks
  
To get access to luminosity component use [Gray](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_GrayScaleColor_Gray.htm.md) property. Alpha channel is available through [A](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_GrayScaleColor_A.htm.md) property. Also there are extended versions of these properties (that returns 16-bit version of the component): [Gray32](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_GrayScaleColor_Gray32.htm.md), and [A32](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_GrayScaleColor_A32.htm.md).
 
Also you can get components by index using [GetChannel(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_CmykColor_GetChannel_1_e1836fc4.htm.md) method.
 
This class implements cast operator for other color types as well as for [System.Drawing.Color](http://msdn2.microsoft.com/en-us/14w97wkc). Note, when you convert colors, no color management is applied. To convert colors with color management, use [ConvertColor(Color, ColorProfile)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_PixelFormatConverter_ConvertColor_2_6c08ebc6.htm.md) method of [PixelFormatConverter](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_PixelFormatConverter.htm.md) class.
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
        - Aurigma.GraphicsMill.GrayScaleColor
 
## Thread Safety
 Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [GrayScaleColor Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_GrayScaleColor.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
