示例#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));
 }
示例#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);
 }
示例#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);
 }
示例#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));
 }