| Category | Extended graphics state |
|---|
Purpose — Apply a previously-created /ExtGState resource to the current content stream.
Description — Emits a /GSn gs operator referencing the resource created by pdfCreateExtGState(Handle). This is the step that actually puts the graphics state (alpha, blend mode, etc.) into effect from this point in the content stream forward — creating the resource alone (pdfCreateExtGState) does not apply it.
Declarations
BOOL32 __stdcall pdfSetExtGState(PPDF IPDF, uint32_t Handle);
function pdfSetExtGState(const IPDF: PPDF; Handle: Cardinal): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle with an open page/content stream. |
Handle | Cardinal | Handle from pdfCreateExtGState. |
Return value — TRUE on success; FALSE if Handle doesn't resolve to a registered ExtGState, or no content stream is open.
See also — pdfCreateExtGState (V03), pdfSetExtGStatePrepress
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Setters
pdfSetExtGState
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.