carta
XpGetImageResolution(3)

XpGetImageResolution3

Gets the current image resolution for a print context.

Usage

cc [flag ...] file ... -lXp [library ...]

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.

Overview

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.

From libxp 1.0.4-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.