---
title: "Common..::.ConvertPixelsToPoints Method (Single, Int32)"
canonical: https://www.graphicsmill.com/docs/gmwc/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Common_ConvertPixelsToPoints_2_05329101.htm
archived: true
applies_to:
  - product: "Graphics Mill Web Controls"
---

**You’re viewing documentation for an outdated product.** Graphics Mill Web Controls is no longer part of Graphics Mill. For current design editing and rendering tools, see [Design Atoms .NET](https://customerscanvas.com/docs/on-premises/design-atoms-cs/), [Design Atoms JS](https://customerscanvas.com/docs/on-premises/design-atoms-js/), and [Design Editor](https://customerscanvas.com/docs/on-premises/design-editor/).

# Common.ConvertPixelsToPoints Method (Single, Int32)

**Applies to:** Graphics Mill Web Controls · **Archived documentation**
 
Converts a specified value in pixels to points using the specified dpi.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gmwc/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```csharp
public static float ConvertPixelsToPoints(float dpi,int pixels
)
```
 
### Parameters
 
 - dpi
     - Type: [System..Single](http://msdn2.microsoft.com/en-us/library/3www918f)
Resolution used for conversion.

 - pixels
     - Type: [System..Int32](http://msdn2.microsoft.com/en-us/library/td2s409d)
Number in pixels to convert.
 
### Return Value
 
The [Single](http://msdn2.microsoft.com/en-us/library/3www918f) value in points equivalent to the pixels value.
   
## See Also

### Reference

- [Common Class](https://www.graphicsmill.com/docs/gmwc/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Common.htm.md)
- [ConvertPixelsToPoints Overload](https://www.graphicsmill.com/docs/gmwc/O_T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Common_ConvertPixelsToPoints.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gmwc/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
