/// <summary> /// Resets the pseudo-random number generator secret key. /// </summary> public static void ResetRandomSeed() => NativeMagickNET.SetRandomSeed(-1);
/// <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);
/// <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); }
///<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)); }