Skip to content

BizArk.Core.Extensions.ImageExt

Brian Brewder edited this page Apr 1, 2017 · 1 revision

Back to BizArk.Core API Reference

Extension methods for images.

Static Methods

  • public static bool Open(this Image img) - Saves the image to the temp directory and opens it in the default application.
  • public static string GetExtension(this Image img) - Gets the default extension that can be used for the file name of the image.
  • public static Image Resize(this Image img, int maxWidth, int maxHeight) - Proportionally resizes an image to fit within the given dimensions.
  • public static Image Resize(this Image img, int maxWidth, int maxHeight, ResizeMethod method) - Resizes an image.
  • public static Image Resize(this Image img, Size max, ResizeMethod method) - Resizes an image.
  • public static bool IsImage(string path) - Determines if the path is the path to an image file. Supports jpg, jpeg, gif, bmp, emf, exif, ico, png, tif, and wmf.

Clone this wiki locally