ImageFactory
The ImageFactory class provides methods to perform various manipulation functions on a given image. It has been carefully designed to prevent the various memory leaks that commonly occur when dealing with images in a performant manner. This makes it safe to use on both Desktop and Web environments.
The ImageFactory auto detects the correct file type of the given image and API for the class is fluent which allows you to easily chain methods to deliver the desired output. For example, the following code loads, resizes, sets a new format and saves the MemoryStream containing image information.
The Image Factory class implements the System.IDisposable
interface. It is important to dispose of each instance correctly
to ensure that there are no memory leaks in your application.