SetGDIPlusFileNameA

Rendering and printing

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetGDIPlusFileName and string arguments are interpreted using the current SetAnsiMode code page

Sets the path and filename of the GDI+ DLL (gdiplus.dll) used by the various rendering functions. This can usually be left at the default, which means the DLL will most probably be stored in the Windows/System folder, but on webservers, etc. it may be necessary to store the file in a different location.

Syntax

Delphi

Function DLSetGDIPlusFileNameA(InstanceID: Integer; DLLFileName: PAnsiChar): Integer;

DLL

int DLSetGDIPlusFileNameA(int InstanceID, const char* DLLFileName);

Parameters

DLLFileNameThe path and file name of the GDI+ DLL, for example "c:\dlls\gdiplus.dll".

Return values

0The specified file could not be found
1The GDI+ DLL file name was set successfully