API referenceGraphics

psrGetLineJoinStyle

Read/write the line-join sub-field (bits 12-13) of a

C
TLineJoinStyle __stdcall psrGetLineJoinStyle(uint32_t DrawParms);
void __stdcall psrSetLineJoinStyle(uint32_t* DrawParms, TLineJoinStyle Value);
Delphi
function psrGetLineJoinStyle(DrawParms: Cardinal): TLineJoinStyle; stdcall;
procedure psrSetLineJoinStyle(var DrawParms: Cardinal; Value: TLineJoinStyle); stdcall;

Purpose. Read/write the line-join sub-field (bits 12-13) of a caller-owned packed DrawParms word.

Description. Same masked read-modify-write pattern, over bits 12-13 ((DrawParms shr 12) and 3 / clear-then-OR Value shl 12). TLineJoinStyle is (jsMiterJoin, jsRoundJoin, jsBevelJoin) — 3 values, ordinals 0..2, fitting the 2-bit field exactly.

Parameters.

ParameterDescription
DrawParms*(Get)* The packed word to read. *(Set)* var — modified in place; only bits 12-13 change.
Value*(Set only)* New TLineJoinStyle ordinal (0..2).

Return value. psrGetLineJoinStyle: the decoded TLineJoinStyle. psrSetLineJoinStyle: none.

See also. pdfGetLineJoinStyle (the unrelated, document-level equivalent).

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern TLineJoinStyle psrGetLineJoinStyle(uint DrawParms);
Area
Graphics
Category

Misc

Exported names

psrGetLineJoinStyle

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.