Enables or disables a plugin.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static int SetPluginEnabled(
	FREE_IMAGE_FORMAT fif,
	bool enable
)
Visual Basic (Declaration)
Public Shared Function SetPluginEnabled ( _
	fif As FREE_IMAGE_FORMAT, _
	enable As Boolean _
) As Integer
Visual C++
public:
static int SetPluginEnabled(
	FREE_IMAGE_FORMAT fif, 
	bool enable
)

Parameters

fif
Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
The plugin to enable or disable.
enable
Type: System..::.Boolean
True: enable the plugin. false: disable the plugin.

Return Value

The previous state of the plugin. 1 - enabled. 0 - disables. -1 plugin does not exist.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also