---
title: PMGetResolution
framework: Application Services
role: pseudoSymbol
platforms: []
path: applicationservices/core_printing/1805451-pmgetresolution
---

# PMGetResolution

Obtains the current application’s drawing resolution.

## Declaration

```occ
OSStatus PMGetResolution (
   PMPageFormat pageFormat,
   PMResolution *res
);
```

## Parameters

- `pageFormat`: The page format object whose drawing resolution you want to obtain.
- `res`: A pointer to your [doc://com.apple.documentation/documentation/applicationservices/core_printing/pmresolution](applicationservices/core_printing/pmresolution.md) structure. On return, the structure contains the drawing resolution of the current application.

## Return Value

A result code. See [Result Codes](../core_printing.md).

## Overview

This function obtains the drawing resolution specified in the page format, not the resolution of the current printer. You can use [PMPrinterGetPrinterResolutionCount](../1462004-pmprintergetprinterresolutioncou.md) and [PMPrinterGetIndexedPrinterResolution](../1464490-pmprintergetindexedprinterresolu.md) to examine the available printer resolutions.

## See Also

### Accessing Data in Page Format Objects

- [PMGetPageFormatExtendedData](../1464455-pmgetpageformatextendeddata.md)
- [PMSetPageFormatExtendedData](../1463464-pmsetpageformatextendeddata.md)
- [PMGetPageFormatPaper](../1461319-pmgetpageformatpaper.md)
- [PMPageFormatGetPrinterID](../1462961-pmpageformatgetprinterid.md)
- [PMGetOrientation](../1459144-pmgetorientation.md)
- [PMSetOrientation](../1459016-pmsetorientation.md)
- [PMSetResolution](1805452-pmsetresolution.md)
- [PMGetScale](../1458796-pmgetscale.md)
- [PMSetScale](../1463343-pmsetscale.md)
- [PMGetAdjustedPageRect](../1461543-pmgetadjustedpagerect.md)
- [PMSetAdjustedPageRect](1805455-pmsetadjustedpagerect.md)
- [PMGetAdjustedPaperRect](../1459167-pmgetadjustedpaperrect.md)
- [PMGetUnadjustedPageRect](../1462944-pmgetunadjustedpagerect.md)
- [PMGetUnadjustedPaperRect](../1462939-pmgetunadjustedpaperrect.md)
- [PMSetUnadjustedPaperRect](1805459-pmsetunadjustedpaperrect.md)
