Table of Contents

Class MagickNET

Namespace
ImageMagick
Assembly
Magick.NET-Q16-AnyCPU.dll

Class that can be used to initialize Magick.NET.

public class MagickNET : IMagickNET
Inheritance
MagickNET
Implements
IMagickNET
Inherited Members

Constructors

MagickNET()

public MagickNET()

Properties

Delegates

Gets the ImageMagick delegate libraries.

public static string Delegates { get; }

Property Value

string

Features

Gets the ImageMagick features.

public static string Features { get; }

Property Value

string

FontFamilies

Gets the font families that are known by ImageMagick.

public static IReadOnlyCollection<string> FontFamilies { get; }

Property Value

IReadOnlyCollection<string>

FontNames

Gets the font names that are known by ImageMagick.

public static IReadOnlyCollection<string> FontNames { get; }

Property Value

IReadOnlyCollection<string>

ImageMagickVersion

Gets the version of ImageMagick.

public static string ImageMagickVersion { get; }

Property Value

string

SupportedFormats

Gets the information about the supported formats.

public static IReadOnlyCollection<IMagickFormatInfo> SupportedFormats { get; }

Property Value

IReadOnlyCollection<IMagickFormatInfo>

Version

Gets the version of Magick.NET.

public static string Version { get; }

Property Value

string

Methods

GetEnvironmentVariable(string)

Gets the environment variable with the specified name.

public static string? GetEnvironmentVariable(string name)

Parameters

name string

The name of the environment variable.

Returns

string

The environment variable with the specified name.

Initialize()

Initializes ImageMagick.

public static void Initialize()

Initialize(IConfigurationFiles)

Initializes ImageMagick with the specified configuration files and returns the path to the temporary directory where the xml files were saved.

public static string Initialize(IConfigurationFiles configFiles)

Parameters

configFiles IConfigurationFiles

The configuration files ot initialize ImageMagick with.

Returns

string

The path of the folder that was created and contains the configuration files.

Initialize(IConfigurationFiles, string)

Initializes ImageMagick with the specified configuration files in the specified the path.

public static void Initialize(IConfigurationFiles configFiles, string path)

Parameters

configFiles IConfigurationFiles

The configuration files ot initialize ImageMagick with.

path string

The directory to save the configuration files in.

Initialize(string)

Initializes ImageMagick with the xml files that are located in the specified path.

public static void Initialize(string path)

Parameters

path string

The path that contains the ImageMagick xml files.

ResetRandomSeed()

Resets the pseudo-random number generator secret key.

public static void ResetRandomSeed()

SetDefaultFontFile(FileInfo)

Set the path to the default font file.

public static void SetDefaultFontFile(FileInfo file)

Parameters

file FileInfo

The file to use at the default font file.

SetDefaultFontFile(string)

Set the path to the default font file.

public static void SetDefaultFontFile(string fileName)

Parameters

fileName string

The file name to use at the default font file.

SetEnvironmentVariable(string, string)

Set the environment variable with the specified name to the specified value.

public static void SetEnvironmentVariable(string name, string value)

Parameters

name string

The name of the environment variable.

value string

The value of the environment variable.

SetFontConfigDirectory(string)

Sets the directory that contains the FontConfig configuration files.

public static void SetFontConfigDirectory(string path)

Parameters

path string

The path of the FontConfig directory.

SetGhostscriptDirectory(string)

Sets the directory that contains the Ghostscript file gsdll32.dll / gsdll64.dll. This method is only supported on Windows.

public static void SetGhostscriptDirectory(string path)

Parameters

path string

The path of the Ghostscript directory.

SetGhostscriptFontDirectory(string)

Sets the directory that contains the Ghostscript font files. This method is only supported on Windows.

public static void SetGhostscriptFontDirectory(string path)

Parameters

path string

The path of the Ghostscript font directory.

SetLogEvents(LogEvents)

Set the events that will be written to the log. The log will be written to the Log event and the debug window in VisualStudio. To change the log settings you a custom log.xml file should be used.

public static void SetLogEvents(LogEvents events)

Parameters

events LogEvents

The events that should be logged.

SetNativeLibraryDirectory(string)

Sets the directory that contains the Native library. This currently only works on Windows.

public static void SetNativeLibraryDirectory(string path)

Parameters

path string

The path of the directory that contains the native library.

SetRandomSeed(int)

Sets the pseudo-random number generator secret key.

public static void SetRandomSeed(int seed)

Parameters

seed int

The secret key.

SetTempDirectory(string)

Sets the directory that will be used when ImageMagick does not have enough memory for the pixel cache.

public static void SetTempDirectory(string path)

Parameters

path string

The path where temp files will be written.

Events

Log

Event that will be raised when something is logged by ImageMagick.

public static event EventHandler<LogEventArgs> Log

Event Type

EventHandler<LogEventArgs>