API referenceGraphics

pdfRoundRect

Draw and immediately paint a rectangle with uniform circular

CategoryImmediate-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

ParameterTypeDescription
IPDFPPDFInstance handle.
PosX, PosYDoubleLower-left corner.
Width, HeightDoubleSize.
RadiusDoubleCorner radius, same on both axes.
FillModeIntegerSee the chapter's shared table.

Return valueTRUE on success; FALSE if no content stream is open.

See alsopdfRoundRectEx

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.