Contents

PMSetResolution

Sets the application drawing resolution.

Declaration

OSStatus PMSetResolution (
   PMPageFormat pageFormat,
   const PMResolution *res
);

Parameters

  • pageFormat:

    The page format object whose drawing resolution you want to set.

  • res:

    A pointer to a structure of type Pmresolution that specifies the desired drawing resolution for your application. You should specify the best resolution for your data. The printing system handles the mapping between the resolution you specify and the printer resolution.

Return Value

A result code. See Result Codes.

Overview

If you call this function after initiating a print job, the change is ignored for the current job.

Special Considerations

This function was needed in the past because QuickDraw uses integer coordinates and has no notion of scaling coordinate systems. For Quartz drawing, this function is obsolete. To change the resolution, draw with fractional coordinates or scale the coordinate system and draw with integer coordinates.

See Also

Accessing Data in Page Format Objects