Ejemplo n.º 1
0
        ///<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);
        }
Ejemplo n.º 2
0
 ///<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));
 }
Ejemplo n.º 3
0
 ///<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));
 }
Ejemplo n.º 4
0
 ///<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));
 }