iTextSharp.text.pdf.PdfContentByte.Circle C# (CSharp) Метод

Circle() публичный Метод

public Circle ( float x, float y, float r ) : void
x float
y float
r float
Результат void
        public void Circle(float x, float y, float r)
        {
            float b = 0.5523f;
            MoveTo(x + r, y);
            CurveTo(x + r, y + r * b, x + r * b, y + r, x, y + r);
            CurveTo(x - r * b, y + r, x - r, y + r * b, x - r, y);
            CurveTo(x - r, y - r * b, x - r * b, y - r, x, y - r);
            CurveTo(x + r * b, y - r, x + r, y - r * b, x + r, y);
        }

Usage Example

Пример #1
0
	    protected override void Draw(PdfContentByte cb) {
		    cb.Circle(x, y, radius);
	    }
All Usage Examples Of iTextSharp.text.pdf.PdfContentByte::Circle
PdfContentByte