Support conversion of pixel densities between different units.
