Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 /// <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));
 }