---
title: "Common..::.ConvertPixelsToPoints Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Common_ConvertPixelsToPoints_2_05329101.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.ConvertPixelsToPoints Method 
 
Converts a specified value in pixels to points using the specified dpi.
 
**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 Function ConvertPixelsToPoints ( _dpi As Single, _pixels As Integer _
) As Single
```
 
```csharp
public static float ConvertPixelsToPoints(float dpi,int pixels
)
```
 
### Parameters
 
 - dpi
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Resolution used for conversion.

 - pixels
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Number in pixels to convert.
 
### Return Value
 
The [Single](http://msdn2.microsoft.com/en-us/3www918f) value in points equivalent to the pixels value.
   
## 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)
