public void DrawLine(Pen pen, Point startPoint, Point endPoint)
 {
     graphics.DrawLine(pen.ToPlatform(), startPoint.ToDrawing(), endPoint.ToDrawing());
 }
Beispiel #2
0
 public static PointF ToDrawing(this Point point)
 {
     return(new PointF((float)point.X, (float)point.Y));
 }
        public void DrawText(FormattedText formattedText, Point point, Rect?clipRegion = null)
        {
            var font = new Font(new FontFamily(formattedText.FontName), formattedText.FontSize);

            graphics.DrawString(formattedText.Text, font, formattedText.Brush.ToPlatform(), point.ToDrawing());
        }