API referenceGraphics

pdfRoundRectEx

Rounded rectangle with independent horizontal/vertical corner

CategoryImmediate-paint shapes

Purpose — Rounded rectangle with independent horizontal/vertical corner radii (elliptical corners).

Declarations

C
BOOL32 __stdcall pdfRoundRectEx(PPDF IPDF, double PosX, double PosY, double Width, double Height, double rWidth, double rHeight, int32_t FillMode);
Delphi
function pdfRoundRectEx(const IPDF: PPDF; PosX, PosY, Width, Height, rWidth, rHeight: Double; FillMode: Integer): LongBool; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
PosX, PosYDoubleLower-left corner.
Width, HeightDoubleSize.
rWidth, rHeightDoubleCorner radius on the X and Y axis respectively (elliptical corners when unequal).
FillModeIntegerSee the chapter's shared table.

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

See alsopdfRoundRect

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Graphics
Category

Core

Exported names

pdfRoundRectEx

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.