| Category | Immediate-paint shapes |
|---|
Purpose — Draw and immediately paint a rectangle with uniform circular corner rounding.
Declarations
C
BOOL32 __stdcall pdfRoundRect(PPDF IPDF, double PosX, double PosY, double Width, double Height, double Radius, int32_t FillMode);
Delphi
function pdfRoundRect(const IPDF: PPDF; PosX, PosY, Width, Height, Radius: Double; FillMode: Integer): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
PosX, PosY | Double | Lower-left corner. |
Width, Height | Double | Size. |
Radius | Double | Corner radius, same on both axes. |
FillMode | Integer | See the chapter's shared table. |
Return value — TRUE on success; FALSE if no content stream is open.
See also — pdfRoundRectEx
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Graphics
Category
Core
Exported names
pdfRoundRect
String variants
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
See working code
Worked examples — complete programs in ten languages.