示例#1
0
 public string SpecifyImagePath(string path, ImageSize size, ImageProportion proportion) =>
 Path.Combine(Path.GetDirectoryName(path) ?? string.Empty,
              $"{size.GetDescription()}{size.GetFileNameSeparator()}" +
              $"{proportion.GetDescription()}{proportion.GetFileNameSeparator()}" +
              $"{Path.GetFileName(path)}");