public enum CanvasDpiRounding
|0||Fractional amounts are rounded downward, toward negative infinity.|
|1||Fractional amounts are rounded to the nearest whole integer.|
|2||Fractional amounts are rounded upward, toward positive infinity.|
After applying DPI scaling to a quantity in dips, this rounding scheme is applied immediately before conversion to an integer. The various implementations of ConvertDipsToPixels(Single, CanvasDpiRounding) return pixels in integral quantities.
The Floor option will yield which location in a pixel grid covers the point specified by the dips value. This is useful for things like converting pointer input to pixel cells in a paint program.
The Round option will round to the closest representable pixel value. This is useful for things like converting the sizes of bitmap resources.