ImageMagick.FileHelper.GetFullPath C# (CSharp) Метод

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

public static GetFullPath ( string path ) : string
path string
Результат string
    public static string GetFullPath(string path)
    {
      Throw.IfNullOrEmpty(nameof(path), path);

      path = CheckForBaseDirectory(path);
      path = Path.GetFullPath(path);
      Throw.IfFalse(nameof(path), Directory.Exists(path), "Unable to find directory: {0}", path);
      return path;
    }

Usage Example

Пример #1
0
        /// <summary>
        /// Initializes ImageMagick with the specified configuration files in the specified the path.
        /// </summary>
        /// <param name="configFiles">The configuration files ot initialize ImageMagick with.</param>
        /// <param name="path">The directory to save the configuration files in.</param>
        public static void Initialize(ConfigurationFiles configFiles, string path)
        {
            Throw.IfNull(nameof(configFiles), configFiles);

            string newPath = FileHelper.GetFullPath(path);

            InitializePrivate(configFiles, newPath);
        }
All Usage Examples Of ImageMagick.FileHelper::GetFullPath