Registers a new plugin to be used in FreeImage. The plugin is residing in a DLL.
The Init function must be called “Init” and must use the stdcall calling convention.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static FREE_IMAGE_FORMAT RegisterExternalPlugin( string path, string format, string description, string extension, string regexpr ) |
Visual Basic (Declaration) |
---|
Public Shared Function RegisterExternalPlugin ( _ path As String, _ format As String, _ description As String, _ extension As String, _ regexpr As String _ ) As FREE_IMAGE_FORMAT |
Visual C++ |
---|
public: static FREE_IMAGE_FORMAT RegisterExternalPlugin( String^ path, String^ format, String^ description, String^ extension, String^ regexpr ) |
Parameters
- path
- Type: System..::.String
Complete path to the dll file hosting the plugin.
- format
- Type: System..::.String
A string describing the format of the plugin.
- description
- Type: System..::.String
A string describing the plugin.
- extension
- Type: System..::.String
A string witha comma sperated list of extensions. f.e: "pl,pl2,pl4"
- regexpr
- Type: System..::.String
A regular expression used to identify the bitmap.