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

public static SetEnv ( string name, string value ) : void
name string
value string
Результат void
Пример #1
0
        /// <summary>
        /// Initializes ImageMagick with the xml files that are located in the specified path.
        /// </summary>
        /// <param name="path">The path that contains the ImageMagick xml files.</param>
        public static void Initialize(string path)
        {
            string newPath = FileHelper.GetFullPath(path);

            CheckImageMagickFiles(newPath);

            Environment.SetEnv("MAGICK_CONFIGURE_PATH", path);
        }
Пример #2
0
        private static void InitializePrivate(ConfigurationFiles configFiles, string newPath)
        {
            configFiles.WriteInDirectory(newPath);

            Environment.SetEnv("MAGICK_CONFIGURE_PATH", newPath);
        }
Пример #3
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) => Environment.SetEnv("MAGICK_TEMPORARY_PATH", FileHelper.GetFullPath(path));
Пример #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) => Environment.SetEnv("MAGICK_GHOSTSCRIPT_FONT_PATH", FileHelper.GetFullPath(path));
Пример #5
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 SetCacheDirectory(string path)
 {
     Environment.SetEnv("MAGICK_OPENCL_CACHE_DIR", FileHelper.GetFullPath(path));
 }
Пример #6
0
 /// <summary>
 /// Sets the directory that contains the FontConfig configuration files.
 /// </summary>
 /// <param name="path">The path of the FontConfig directory.</param>
 public static void SetFontConfigDirectory(string path)
 => Environment.SetEnv("FONTCONFIG_PATH", FileHelper.GetFullPath(path));