MpToPixelsY() public method

Transform a distance in millipoints (72,000 per inch) into pixels in the X direction.
public MpToPixelsY ( int mp ) : int
mp int
return int
Exemplo n.º 1
0
 /// <summary>
 /// The gap at the top of the box (margin + border + pad) in layout pixels.
 /// </summary>
 internal int GapTrailing(LayoutTransform trans)
 {
     // Convert each separately to avoid rounding errors.
     return(trans.MpToPixelsY(Style.Margins.TrailingMp)
            + trans.MpToBorderPixelsY(Style.Borders.TrailingMp)
            + trans.MpToPixelsY(Style.Pads.TrailingMp));
 }
Exemplo n.º 2
0
		/// <summary>
		/// The gap at the top of the box (margin + border + pad) in layout pixels.
		/// </summary>
		internal int GapTrailing(LayoutTransform trans)
		{
			// Convert each separately to avoid rounding errors.
			return trans.MpToPixelsY(Style.Margins.TrailingMp)
				   + trans.MpToBorderPixelsY(Style.Borders.TrailingMp)
				   + trans.MpToPixelsY(Style.Pads.TrailingMp);
		}