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

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

public RoundRectangle ( float x, float y, float w, float h, float r ) : void
x float
y float
w float
h float
r float
Результат void
        public void RoundRectangle(float x, float y, float w, float h, float r)
        {
            if (w < 0) {
                x += w;
                w = -w;
            }
            if (h < 0) {
                y += h;
                h = -h;
            }
            if (r < 0)
                r = -r;
            float b = 0.4477f;
            MoveTo(x + r, y);
            LineTo(x + w - r, y);
            CurveTo(x + w - r * b, y, x + w, y + r * b, x + w, y + r);
            LineTo(x + w, y + h - r);
            CurveTo(x + w, y + h - r * b, x + w - r * b, y + h, x + w - r, y + h);
            LineTo(x + r, y + h);
            CurveTo(x + r * b, y + h, x, y + h - r * b, x, y + h - r);
            LineTo(x, y + r);
            CurveTo(x, y + r * b, x + r * b, y, x + r, y);
        }
PdfContentByte