コード例 #1
0
 public string GetImageSize(ImageSize size)
 {
     return($"{Constants.UrlImage}{size.GetDescription()}{this.BackdropPath}");
 }
コード例 #2
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)}");