---
name: "XpGetImageResolution"
section: "3"
platform: "linux"
package: "libxp"
version: "1.0.4-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XpGetImageResolution"
---

# XpGetImageResolution(3)

Gets the current image resolution for a print context.

## NAME

XpGetImageResolution - Gets the current image resolution for a print context.

## SYNOPSIS

      cc \[ flag... \] file... -lXp \[ library... \]\
\
       \#include \<X11/extensions/Print.h\>

**int XpGetImageResolution** ( *display,* *print\_context* )\
\
       Display \**display*;\
\
       XPContext *print\_context*;

## ARGUMENTS

- *display*

  Specifies a pointer to the Display structure.

- *print\_context*

  Specifies the print context on which to get the resolution.

## DESCRIPTION

XpGetImageResolution returns the current image resolution for the specified print context. A value of zero means the resolution automatically tracks the printer resolution. If the request fails in some way, a negative value is returned.

## DIAGNOSTICS

- XPBadContext

  A valid print context-id has not been set prior to making this call.
