//////////////////////////////////////////////////////////////////// // Draw six sided regular polygon //////////////////////////////////////////////////////////////////// private void DrawStar ( PdfContents Contents ) { // save graphics state Contents.SaveGraphicsState(); // Regular polygon // Coordinate of center point is PosX=6.67" PosY=5.7" // Radius of end points is 0.7" // First drawing point is at 30 degrees (in radians PI / 6). // Number of sides is 6 Contents.SetColorNonStroking(Color.Turquoise); Contents.DrawStar(6.67, 5.7, 0.7, Math.PI / 6, 6, PaintOp.CloseFillStroke); // restore graphics state Contents.RestoreGraphicsState(); return; }