Example #1
0
 public static string GetBase64Thumbnail(this DiaryImage image) => Convert.ToBase64String(image.Thumbnail);
Example #2
0
 public static string GetSizeKbString(this DiaryImage image) => Math.Round(image.SizeByte / 1024f, 2).ToString(CultureInfo.InvariantCulture) + " Kb";
Example #3
0
 public static int GetBiggestImageDimm(this DiaryImage image) => image.Width > image.Height ? image.Width : image.Height;