int32_t __stdcall pdfSetGDIPlusOptions(PPDF IPDF, int32_t OptionID, int32_t NewValue);
function pdfSetGDIPlusOptions(const IPDF: PPDF; OptionID, NewValue: Integer): Integer; stdcall;
Purpose. Set a GDI+-integration option, keyed by OptionID, for whatever GDI+-based rendering/conversion path consults it (EMF/WMF replay, canvas capture — see V03's GDI-canvas cluster).
Description. Real: stores into a TDictionary<Integer, Integer> (GDIPlusOptions) keyed by OptionID — a genuinely extensible option-bag mechanism, unlike this chapter's several single-fixed-field no-ops. This chapter did not independently re-verify which specific OptionID values are consulted by which GDI+ call site, or a corresponding getter (none was found in this cluster's inventory).
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
OptionID | The option key. |
NewValue | The value to associate with that key. |
Return value. 1 if IPDF is valid; 0 otherwise.
C# (P/Invoke)
public static extern int pdfSetGDIPlusOptions(IntPtr IPDF, int OptionID, int NewValue);
Setters
pdfSetGDIPlusOptions
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.