Exemple #1
0
 protected string UpdateImage(string image, string updateImage, int maxWidth, int maxHeight)
 {
     if (string.IsNullOrEmpty(updateImage))
     {
         return(image);
     }
     return(updateImage == "null" ? null : ImageSharpControl.Resize(updateImage, maxWidth, maxHeight));
 }
Exemple #2
0
 protected string UpdateImage(string updateImage, int maxWidth, int maxHeight)
 {
     return(string.IsNullOrEmpty(updateImage) ? null : ImageSharpControl.Resize(updateImage, maxWidth, maxHeight));
 }