/// <summary> /// Resizes image /// </summary> /// <param name="imageBytes"></param> /// <param name="imageSize"></param> /// <param name="imageFormatSpec"></param> /// <returns></returns> public byte[] ResizeImage(byte[] imageBytes, IImageSizes imageSize, IImageFormatSpec imageFormatSpec) { return this.ResizeImage(imageBytes, imageSize.Width, imageSize.MaxHeight, imageSize.OnlyResizeIfWider, imageFormatSpec); }
/// <summary> /// Resizes image /// </summary> /// <param name="imageBytes"></param> /// <param name="imageSize"></param> /// <param name="imageFormatSpec"></param> /// <returns></returns> public byte[] ResizeImage(byte[] imageBytes, IImageSizes imageSize, IImageFormatSpec imageFormatSpec) { return(this.ResizeImage(imageBytes, imageSize.Width, imageSize.MaxHeight, imageSize.OnlyResizeIfWider, imageFormatSpec)); }