PdfContentByte cb = writer.DirectContentUnder;
//填充色的赋值
cb.SetColorFill(BaseColor.BLUE);
//边框线的赋值
cb.SetColorStroke(BaseColor.BLACK);
cb.SetLineWidth(2f);
//cb.Circle(120f, 250f, 50f);
cb.RoundRectangle(100, 100, 100, 100, 30);
//画矢量图并画线和颜色填充
cb.FillStroke();
//画矢量图画线
cb.Fill();
//画矢量图颜色填充
cb.Stroke();
时间: 2024-10-24 20:04:19