예제 #1
0
 public void DrawLine(Pen pen, Point startPoint, Point endPoint)
 {
     graphics.DrawLine(pen.ToPlatform(), startPoint.ToDrawing(), endPoint.ToDrawing());
 }
예제 #2
0
 public static PointF ToDrawing(this Point point)
 {
     return(new PointF((float)point.X, (float)point.Y));
 }
예제 #3
0
        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());
        }