///<summary> /// Adds the specified path to the environment path. You should place the ImageMagick /// xml files in that directory. ///</summary> ///<param name="path">The path that contains the ImageMagick xml files.</param> public static void Initialize(string path) { string newPath = CheckDirectory(path); CheckImageMagickFiles(newPath); NativeMagickNET.SetEnv("MAGICK_CONFIGURE_PATH", path); }
///<summary> /// Sets the directory that will be used when ImageMagick does not have enough memory for the /// pixel cache. ///</summary> ///<param name="path">The path where temp files will be written.</param> public static void SetTempDirectory(string path) { NativeMagickNET.SetEnv("MAGICK_TEMPORARY_PATH", CheckDirectory(path)); }
///<summary> /// Sets the directory that will be used by ImageMagick to store OpenCL cache files. ///</summary> ///<param name="path">The path of the OpenCL cache directory.</param> public static void SetOpenCLCacheDirectory(string path) { NativeMagickNET.SetEnv("MAGICK_OPENCL_CACHE_DIR", CheckDirectory(path)); }
///<summary> /// Sets the directory that contains the Ghostscript font files. ///</summary> ///<param name="path">The path of the Ghostscript font directory.</param> public static void SetGhostscriptFontDirectory(string path) { NativeMagickNET.SetEnv("MAGICK_GHOSTSCRIPT_FONT_PATH", CheckDirectory(path)); }