Returns a string version of this resolution attribute in the given units.
The string takes the form
"CxF U"
,
where
C is the cross feed direction resolution,
F is the
feed direction resolution, and
U is the units name. The values are
rounded to the nearest integer.
Returns:
String version of this resolution attribute.
Parameters:
-
units - Unit conversion factor, e.g. {@link #DPI
DPI
} or {@link
#DPCM
DPCM
}.
-
unitsName - Units name string, e.g.
"dpi"
or
"dpcm"
. If
null, no units name is appended to the result.
Throws:
-
IllegalArgumentException - (unchecked exception) Thrown if
units
< 1.