/// <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)); }