getPPI {imageUtilities}R Documentation

get the pixels per inch of a screen (may not work!, unix only for now)

Description

get the pixels per inch of a screen (may not work!, unix only for now)

Usage

  getPPI(quietly = FALSE)

Arguments

quietly

whether to fail quietly if PPI cannot be determined, or throw an error.

Value

c(horizontal,vertical) PPI. NULL if not found.

Note

This calls (on unix) xdpyinfo and (on Windows) wmic – it is not at all guaranteed to work!

See Also

Other units: convertScreenUnits, getScreenResolution, unitType


[Package imageUtilities version 1.0.3 Index]