コード例 #1
0
ファイル: MagickNET.cs プロジェクト: Tommy-Hu/Magick.NET
 /// <summary>
 /// Resets the pseudo-random number generator secret key.
 /// </summary>
 public static void ResetRandomSeed()
 => NativeMagickNET.SetRandomSeed(-1);
コード例 #2
0
 /// <summary>
 /// Sets the pseudo-random number generator secret key.
 /// </summary>
 /// <param name="seed">The secret key.</param>
 public static void SetRandomSeed(int seed)
 => NativeMagickNET.SetRandomSeed(seed);
コード例 #3
0
        /// <summary>
        /// Set the path to the default font file.
        /// </summary>
        /// <param name="fileName">The file name to use at the default font file.</param>
        public static void SetDefaultFontFile(string fileName)
        {
            Throw.IfNullOrEmpty(nameof(fileName), fileName);

            NativeMagickNET.SetDefaultFontFile(fileName);
        }
コード例 #4
0
ファイル: MagickNET.cs プロジェクト: modulexcite/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)
 {
     NativeMagickNET.SetEnv("MAGICK_TEMPORARY_PATH", CheckDirectory(path));
 }
コード例 #5
0
ファイル: MagickNET.cs プロジェクト: modulexcite/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 SetOpenCLCacheDirectory(string path)
 {
     NativeMagickNET.SetEnv("MAGICK_OPENCL_CACHE_DIR", CheckDirectory(path));
 }
コード例 #6
0
ファイル: MagickNET.cs プロジェクト: modulexcite/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)
 {
     NativeMagickNET.SetEnv("MAGICK_GHOSTSCRIPT_FONT_PATH", CheckDirectory(path));
 }