Rounded rectangle

Informations

Author: Christophe Prugnaud
License: FPDF

Description

This script is based on this one and allows to draw a rectangle with some rounded corners. Parameters are:

x, y: top left corner of the rectangle.
w, h: width and height.
r: radius of the rounded corners.
corners: numbers of the corners to be rounded: 1, 2, 3, 4 or any combination (1=top left, 2=top right, 3=bottom right, 4=bottom left).
style: same as Rect(): F, D (default), FD or DF.