SetEnv() public static method

public static SetEnv ( string name, string value ) : void
name string
value string
return void
コード例 #1
0
ファイル: MagickNET.cs プロジェクト: sadorect/Magick.NET
        /// <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
ファイル: MagickNET.cs プロジェクト: sadorect/Magick.NET
        private static void InitializePrivate(ConfigurationFiles configFiles, string newPath)
        {
            configFiles.WriteInDirectory(newPath);

            Environment.SetEnv("MAGICK_CONFIGURE_PATH", newPath);
        }
コード例 #3
0
ファイル: MagickNET.cs プロジェクト: sadorect/Magick.NET
 /// <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
ファイル: MagickNET.cs プロジェクト: sadorect/Magick.NET
 /// <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
ファイル: OpenCL.cs プロジェクト: judypol/Magick.NET
 ///<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
ファイル: MagickNET.cs プロジェクト: Tommy-Hu/Magick.NET
 /// <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));