---
title: "Bitmap..::.Width Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_Width.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/)

# Bitmap.Width Property 
 
Returns current bitmap width in pixels.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public ReadOnly Property Width As Integer
```
 
```csharp
public int Width { get; }
```
 
### Property Value
Width of the bitmap in pixels.
 
## Examples
  
```
Console.WriteLine("Bitmap: " & bitmap.Width & " x " & bitmap.Height)

Dim bitmapData As Aurigma.GraphicsMill.BitmapData = bitmap.LockBits(20, 20, 150, 100)

Console.WriteLine("BitmapData: " & bitmapData.Width & " x " & bitmapData.Height)

bitmap.UnlockBits(bitmapData)
```
 
```csharp
Console.WriteLine("Bitmap: " + bitmap.Width + " x " + bitmap.Height);

Aurigma.GraphicsMill.BitmapData bitmapData = bitmap.LockBits(20, 20, 150, 100);

Console.WriteLine("BitmapData: " + bitmapData.Width + " x " + bitmapData.Height);

bitmap.UnlockBits(bitmapData);
```
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
