C# Класс ImageMagick.MagickNET

Class that can be used to initialize Magick.NET.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetFormatInformation ( FileInfo file ) : MagickFormatInfo

Returns the format information of the specified format based on the extension of the file.

GetFormatInformation ( MagickFormat format ) : MagickFormatInfo

Returns the format information of the specified format.

GetFormatInformation ( string fileName ) : MagickFormatInfo

Returns the format information of the specified format based on the extension of the file. If that fails the format will be determined by 'pinging' the file.

Initialize ( string path ) : void

Adds the specified path to the environment path. You should place the ImageMagick xml files in that directory.

SetGhostscriptDirectory ( string path ) : void

Sets the directory that contains the Ghostscript file gsdll32.dll / gsdll64.dll.

SetGhostscriptFontDirectory ( string path ) : void

Sets the directory that contains the Ghostscript font files.

SetLogEvents ( LogEvents events ) : void

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 must use a custom log.xml file.

SetRandomSeed ( int seed ) : void

Sets the pseudo-random number generator secret key.

SetTempDirectory ( string path ) : void

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

Приватные методы

Метод Описание
CheckImageMagickFiles ( string path ) : void
OnLog ( UIntPtr type, IntPtr text ) : void
SetLogEvents ( ) : void

Описание методов

GetFormatInformation() публичный статический Метод

Returns the format information of the specified format based on the extension of the file.
public static GetFormatInformation ( FileInfo file ) : MagickFormatInfo
file System.IO.FileInfo The file to get the format for.
Результат MagickFormatInfo

GetFormatInformation() публичный статический Метод

Returns the format information of the specified format.
public static GetFormatInformation ( MagickFormat format ) : MagickFormatInfo
format MagickFormat The image format.
Результат MagickFormatInfo

GetFormatInformation() публичный статический Метод

Returns the format information of the specified format based on the extension of the file. If that fails the format will be determined by 'pinging' the file.
public static GetFormatInformation ( string fileName ) : MagickFormatInfo
fileName string The name of the file to get the format for.
Результат MagickFormatInfo

Initialize() публичный статический Метод

Adds the specified path to the environment path. You should place the ImageMagick xml files in that directory.
public static Initialize ( string path ) : void
path string The path that contains the ImageMagick xml files.
Результат void

SetGhostscriptDirectory() публичный статический Метод

Sets the directory that contains the Ghostscript file gsdll32.dll / gsdll64.dll.
public static SetGhostscriptDirectory ( string path ) : void
path string The path of the Ghostscript directory.
Результат void

SetGhostscriptFontDirectory() публичный статический Метод

Sets the directory that contains the Ghostscript font files.
public static SetGhostscriptFontDirectory ( string path ) : void
path string The path of the Ghostscript font directory.
Результат void

SetLogEvents() публичный статический Метод

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 must use a custom log.xml file.
public static SetLogEvents ( LogEvents events ) : void
events LogEvents The events that will be logged.
Результат void

SetRandomSeed() публичный статический Метод

Sets the pseudo-random number generator secret key.
public static SetRandomSeed ( int seed ) : void
seed int The secret key.
Результат void

SetTempDirectory() публичный статический Метод

Sets the directory that will be used when ImageMagick does not have enough memory for the pixel cache.
public static SetTempDirectory ( string path ) : void
path string The path where temp files will be written.
Результат void