---
title: "Common..::.GetImageSize Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Common_GetImageSize_4_94a780fb.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/)

# Common.GetImageSize Method 
 
Returns the size and resolution of an image stored at the specified path.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```
Public Shared Sub GetImageSize ( _imageFileName As String, _<OutAttribute> ByRef imageSize As Size, _<OutAttribute> ByRef horizontalResolution As Single, _<OutAttribute> ByRef verticalResolution As Single _
)
```
 
```csharp
public static void GetImageSize(string imageFileName,out Size imageSize,out float horizontalResolution,out float verticalResolution
)
```
 
### Parameters
 
 - imageFileName
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
Filename of the image to get a size.

 - imageSize
     - Type: [System.Drawing.Size](http://msdn2.microsoft.com/en-us/bfwt6fe5) %

 - horizontalResolution
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f) %

 - verticalResolution
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f) %
   
## See Also

### Reference

- [Common Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Common.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
