Beispiel #1
0
 /// <summary>
 /// Отрисовать картинку глифа.
 /// </summary>
 /// <param name="gfx">Graphics.</param>
 protected override void DrawGlyph(Graphics gfx)
 {
     gfx.DrawLine(
         Pens.Black,
         UnitsConverter.MMToPx(FirstPoint.XInMM),
         UnitsConverter.MMToPx(FirstPoint.YInMM),
         UnitsConverter.MMToPx(SecondPoint.XInMM),
         UnitsConverter.MMToPx(SecondPoint.YInMM));
 }
Beispiel #2
0
 /// <summary>
 /// Конвертирует миллиметры в пиксели.
 /// </summary>
 /// <param name="mm">Миллиметры.</param>
 /// <returns>Пиксели.</returns>
 public static int MMToPx(this int mm)
 {
     return(UnitsConverter.MMToPx(mm));
 }