Graphics g = Graphics.FromImage(bmp); g.PageUnit = GraphicsUnit.Millimeter; Rectangle r = new Rectangle(0, 0, (int)(Math.Round((40 / 25.4) / (float)Math.PI * g.DpiX) * 2), (int)(Math.Round((40 / 25.4) / (float)Math.PI * g.DpiY) * 2)); g.DrawArc(Pens.Black, r, 0, 180);
g.DrawLine(Pens.Black, 1, 1, 1, (float)Math.Round((2 / 25.4) * g.DpiY));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)