Fill(apt[i], font, brush, x, y);
}
}
return x + 42 * grfx.DpiX * font.SizeInPoints / 72 / 72;
}
private float MinusSign(Font font, Brush brush, float x, float y)
{
Fill(apt[3], font, brush, x, y);
return x + 42 * grfx.DpiX * font.SizeInPoints / 72 / 72;
}
private float DrawSpace(Font font, Brush brush, float x, float y)
{
return x + 36 * grfx.DpiX * font.SizeInPoints / 72 / 72;
}
private float Colon(Font font, Brush brush, float x, float y)
{
Point[][] apt = new Point[2][];
apt[0] = new Point[] {
new Point( 4, 12), new Point( 16, 12),
new Point(16, 24), new Point( 4, 24)
};
apt[1] = new Point[] {
new Point( 4, 50), new Point( 16, 50),
new Point(16, 62), new Point( 4, 62)
};
for (int i = 0; i < apt.Length; i++)
{
Fill(apt[i], font, brush, x, y);
}
return x + 20 * grfx.DpiX * font.SizeInPoints / 72 / 72;
}
private void Fill(Point[] apt, Font font, Brush brush, float x, float y)
{
PointF[] aptf = new PointF[apt.Length];
for (int i = 0; i < apt.Length; i++)
{
aptf[i].X = x + apt[i].X * grfx.DpiX * font.SizeInPoints / 72 / 72;
aptf[i].Y = y + apt[i].Y * grfx.DpiY * font.SizeInPoints / 72 / 72;
}
grfx.FillPolygon(brush, aptf);
}
}
}
| 对此文章发表了评论 |

