head.resolution.in_dpi
Reads the printhead resolution in dots per inch.
Head resolution reports 203, 300, or 600 on typical heads. It is read-only because the head, not a setting, decides it. Use the value to convert millimeters to dots. A 4 inch label is 812 dots at 203 dpi and about 1200 dots at 300 dpi. Host identification reports dots per millimeter instead. Eight dots per millimeter matches 203 dpi. Prefer this key when it answers. If the key is missing, fall back to the identification record rather than assuming 203.
Syntax
! U1 getvar "head.resolution.in_dpi"
| Type | int |
|---|---|
| Range | 100 to 600 dpi |
| Access | getvar |
Example
Source: Zebra documentation