public static Stream Resize(string fullPath, int? width, int? height, ImageResizeQuality quality) { Stream stream = null; switch (quality) { case ImageResizeQuality.Poor: stream = ResizeWithPoorQuality(fullPath, width, height); break; case ImageResizeQuality.Medium: stream = ResizeWithMediumQuality(fullPath, width, height); break; case ImageResizeQuality.High: stream = ResizeWithHighQuality(fullPath, width, height); break; } return stream; }
public static Stream Resize(string fullPath, int?width, int?height, ImageResizeQuality quality) { Stream stream = null; switch (quality) { case ImageResizeQuality.Poor: stream = ResizeWithPoorQuality(fullPath, width, height); break; case ImageResizeQuality.Medium: stream = ResizeWithMediumQuality(fullPath, width, height); break; case ImageResizeQuality.High: stream = ResizeWithHighQuality(fullPath, width, height); break; } return(stream); }