/// <summary> /// Compute the pixel count on the destination in dependency of the ppi /// </summary> /// <param name="dpi">DPI</param> /// <returns>The pixel count on destination</returns> public PixelUnit ToPixelCount(DPIUnit dpi) { return(new PixelUnit(Value / dpi.MillimetersPerPixel.Value)); }
/// <summary> /// Compute the inch length of all pixels in dependency of the dpi /// </summary> /// <param name="dpi">DPI</param> /// <returns></returns> public InchUnit ToInchLength(DPIUnit dpi) { return new InchUnit(dpi.InchesPerPixel.Value * Value); }
/// <summary> /// Compute the millimeter length of all pixels in dependency of the dpi /// </summary> /// <param name="dpi">DPI</param> /// <returns></returns> public MillimeterUnit ToMillimeterLength(DPIUnit dpi) { return new MillimeterUnit(dpi.MillimetersPerPixel.Value * Value); }
/// <summary> /// Compute the pixel count on the destination in dependency of the dpi /// </summary> /// <param name="dpi">DPI</param> /// <returns>The pixel count on destination</returns> public PixelUnit ToPixelCount(DPIUnit dpi) { return(new PixelUnit(Value / dpi.InchesPerPixel.Value)); }