---
title: "BitmapViewer..::.GetCanvasBounds Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_BitmapViewer_GetCanvasBounds.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/)

# BitmapViewer.GetCanvasBounds Method 
 
Returns a rectangle of the bitmap viewer client area (without scroll bars).
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
 
## Syntax
  
```
Public Overrides Function GetCanvasBounds As Rectangle
```
 
```csharp
public override Rectangle GetCanvasBounds()
```
 
### Return Value
A rectangle representing the bitmap viewer client area.
 
## Remarks
  
Left-top corner coordinates are measured relatively to the parent form using its coordinate system. Width and height do not include scroll bars and a border.
 
To get a rectangle occupied by the bitmap inside the control, use the [GetViewportBounds()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_BitmapViewer_GetViewportBounds.htm.md) method.
 ![](https://www.graphicsmill.com/docs/gm5/CanvasRectangle.png)
   
## See Also

### Reference

- [BitmapViewer Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_BitmapViewer.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
