Example #1
0
 public static void ImageSave(this BaseEntity entity, string sourceImagePath, EntityImageFormat entityImageFormat)
 {
     entityImageFormat = entityImageFormat ?? EntityImageFormat.Original;
     ImageSave(entity, sourceImagePath, entityImageFormat.Size, entityImageFormat.Name, entityImageFormat.Crop);
 }
Example #2
0
 public static void ImageDelete(this BaseEntity entity, EntityImageFormat entityImageFormat)
 {
     entity.ImageDelete(entityImageFormat.Name);
 }
Example #3
0
 public static string GetImagePath(this BaseEntity entity, EntityImageFormat entityImageFormat)
 {
     return(entity.GetImagePath(entityImageFormat.Name));
 }