## GetGrayscaleAlpha(int) {#getgrayscalealpha}

Gets GrayscaleAlpha color with a specified number of bits per sample.

```csharp
public static PixelDataFormat GetGrayscaleAlpha(int bitsPerSample)
```

| Parameter | Type | Description |
| --- | --- | --- |
| bitsPerSample | Int32 | The number of bits per sample. |

### Return Value

The GrayscaleAlpha color.

### See Also

* class [PixelDataFormat](../)
* namespace [Aspose.Imaging](../../pixeldataformat/)
* assembly [Aspose.Imaging](../../../)

---

## GetGrayscaleAlpha(int, int) {#getgrayscalealpha_1}

Gets GrayscaleAlpha color with a specified number of bits per sample.

```csharp
public static PixelDataFormat GetGrayscaleAlpha(int bitsPerSample, int alphaChannelBits)
```

| Parameter | Type | Description |
| --- | --- | --- |
| bitsPerSample | Int32 | The number of bits per sample. |
| alphaChannelBits | Int32 | The number of bits per sample in the alpha channel. |

### Return Value

The GrayscaleAlpha color.

### See Also

* class [PixelDataFormat](../)
* namespace [Aspose.Imaging](../../pixeldataformat/)
* assembly [Aspose.Imaging](../../../)


