Argentini.Halide.H3Image.ResizeImage C# (CSharp) Method

ResizeImage() public static method

Resize an image on disk, constraining proportions (handles BMP, JPEG, GIF, TIFF, PNG); maintains transparency of PNG images. Filenames determine file types used automatically.
public static ResizeImage ( string imageSavePath, int quality, int maxWidth, int maxHeight, string path ) : String
imageSavePath string Web-style path with filename for the final resized image.
quality int Quality setting from 1 to 100 (for JPEG only; 0 for other types).
maxWidth int How wide to make the image, constraining the aspect ratio (0 ignore this param). /// Only one "Max" property can be used at a time - set the other to a zero.
maxHeight int How tall to make the image, constraining the aspect ratio (0 ignore this param).
path string Web-style path to the source image file.
return String
        public static String ResizeImage(string imageSavePath, int quality, int maxWidth, int maxHeight, string path)
        {
            Rectangle cropArea = new Rectangle(0, 0, 0, 0);
            return ResizeImage(imageSavePath, quality, maxWidth, maxHeight, path, cropArea);
        }

Same methods

H3Image::ResizeImage ( string imageSavePath, int quality, int maxWidth, int maxHeight, string path, Rectangle cropArea ) : String