Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 9 - Printing Manager / Printing Manager Reference
Data Structures /


TGetRslBlk

You pass a record defined by the data type TGetRslBlk to the PrGeneral procedure when you use the getRslDataOp opcode. When the PrGeneral procedure completes, the TGetRslBlk record contains the resolutions available on the current printing device. For information on how to use the TGetRslBlk record with the PrGeneral procedure, see "Determining and Setting the Resolution of the Current Printer" on page 9-28.

TYPE TGetRslBlk =          {get-resolution record}
   RECORD
      iOpCode:    Integer; {the getRslDataOp opcode}
      iError:     Integer; {result code returned by PrGeneral}
      lReserved:  LongInt; {reserved}
      iRgType:    Integer; {printer driver version number}
      xRslRg:     TRslRg;  {x-direction resolution range}
      yRslRg:     TRslRg;  {y-direction resolution range}
      iRslRecCnt: Integer; {number of resolution records}
      rgRslRec:            {array of resolution records}
                  ARRAY[1..27] OF TRslRec; 
   END;
Field Description
iOpCode
The opcode getRslDataOp.
iError
The result code returned by PrGeneral.
lReserved
Reserved.
iRgType
The version number returned by the printer driver.
xRslRg
The resolution range supported for the x direction. This field contains a record defined by the data type TRslRg:
               TYPE TRslRg = 
                  RECORD
                     iMin: Integer; {minimum resolution supported}
                     iMax: Integer; {maximum resolution supported}
                  END;
If the current printer does not support variable resolution, the values in the iMin and iMax fields are 0.
yRslRg
The resolution range supported for the y direction. This field contains a record defined by the data type TRslRg, which is shown in the preceding description for the xRslRg field. If the current printer does not support variable resolution, the values in the iMin and iMax fields are 0.
iRslRecCnt
The number of TRslRec records used by a particular printer driver (up to 27) if it supports discrete resolution. If it supports variable resolution, this field contains 0. The TRslRec record is described next.
rgRslRec
An array of records defined by the TRslRec data type, each specifying a discrete resolution at which the current printer can print an image. A printer driver may contain up to 27 separate TRslRec records.
               TYPE TRslRec = 
                  RECORD
                     iXRsl: Integer;   {discrete resolution, }
                                       { x direction}
                     iYRsl: Integer;   {discrete resolution, }
                                       { y direction}
                  END;

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996