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>) -> OSStatusParameters
- 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
PMPrinterCopyDescriptionURL(_:_:_:)PMPrinterCopyDeviceURI(_:_:)PMPrinterCopyHostName(_:_:)PMPrinterCopyPresets(_:_:)PMPrinterGetCommInfo(_:_:_:)PMPrinterGetDriverCreator(_:_:)PMPrinterGetID(_:)PMPrinterGetLocation(_:)PMPrinterGetMakeAndModelName(_:_:)PMPrinterGetMimeTypes(_:_:_:)PMPrinterGetName(_:)PMPrinterGetOutputResolution(_:_:_:)PMPrinterSetOutputResolution(_:_:_:)PMPrinterGetPaperList(_:_:)PMPrinterGetPrinterResolutionCount(_:_:)PMPrinterGetState(_:_:)PMPrinterSetDefault(_:)PMPrinterIsDefault(_:)PMPrinterIsFavorite(_:)PMPrinterIsPostScriptCapable(_:)PMPrinterIsPostScriptPrinter(_:_:)PMPrinterIsRemote(_:_:)