| Category | Parsed operator bit-field helper |
|---|
Purpose — Extract the text render-mode field from a packed DrawParms bitmask (as found in a parsed operator's graphics-state parameter, from psrParsePage's operator tree).
Description — A pure bit-extraction helper — takes no IPDF or Ctx at all; operates entirely on the DrawParms value you pass in. Bits 20..27 hold the TDrawMode value.
Declarations
C
TDrawMode __stdcall psrGetTextDrawMode(uint32_t DrawParms);
Delphi
function psrGetTextDrawMode(DrawParms: Cardinal): TDrawMode; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
DrawParms | Cardinal | A packed graphics-state bitmask, typically read from a parsed operator's parameter struct. |
Return value — TDrawMode((DrawParms shr 20) and $FF).
See also — psrSetTextDrawMode
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern TDrawMode psrGetTextDrawMode(uint DrawParms);
Area
Text
Category
Misc
Exported names
psrGetTextDrawMode
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.