Contents

PMPrinterGetIndexedPrinterResolution(_:_:_:)

Obtains a resolution setting based on an index into the range of settings supported by the specified printer.

Declaration

func PMPrinterGetIndexedPrinterResolution(_ printer: PMPrinter, _ index: UInt32, _ resolutionP: UnsafeMutablePointer<PMResolution>) -> OSStatus

Parameters

  • printer:

    The printer whose resolution you want to obtain.

  • index:

    An index into the range of resolution settings supported by the specified printer. Index values begin at 1.

  • res:

    A pointer to your Pmresolution data structure. On return, the structure contains the printer resolution setting associated with the index value.

Return Value

A result code. See Result Codes.

Discussion

You must call this function between the creation and release of a printing session. Before you call this function, you must call the function PMPrinterGetPrinterResolutionCount(_:_:) to obtain the number of resolution settings supported by the specified printer.

See Also

Accessing Information About a Printer