Image processing in C#

Graphics Mill is the C# image processing library of your C# developers’ dreams.

The Graphics Mill C# graphics and image library is the best available C# image processing suite. C# developers will fall in love with the many great features in this SDK.

Class library for image processing

A comprehensive class library that handles image processing functionality with ease is included in Graphics Mill. C# developers will find that they can now utilize many of the image processing capabilities of .NET which are now available in the C# image processing library of Graphics Mill. The list of capabilities found in the C# image processing library is impressive, but is by no means comprehensive:

  • Loading and saving the most popular image types around, including JPEG, TIFF, PNG, etc., is straightforward with the C# image processing library.
  • Images can be edited through resizing, rotation, cropping, affine, and perspective transforms.
  • Working with colors using the C# image processing library is a breeze. Different operations are available to edit contrast, tone correction, hue, saturation, and lightness. Various configurable autofix parameters are also available.
  • Draw lines, rectangles, and other shapes using simple commands.
  • Pixels can be converted between different formats and color spaces quickly.
  • Several images can be combined together with C# image processing library to make a new image. Image transparency is also supported.
  • Draw text, work with different fonts, measure text length, etc.
  • Metadata such as EXIF, PITC, and Adobe XMP can be captured, and used to enhance applications.
  • Take advantage of extended support for advanced formats. For example, multipage TIFF, animated GIFs, and multilayer PSD are all supported by C# image processing library.  When working with these kinds of images, individual page, frame, and layer information, along with their corresponding settings, can be extracted and manipulated. 
  • Access image pixels directly to enable C# image processing library to utilize any custom algorithm.

Graphics Mill’s C# image processing library is extremely versatile. The display is very easy to read, and is easy to understand. The code strings themselves are elegant and accessible, even when undertaking very involved operations. For example, here is a code snipped that will load an enormous TIFF file, resize it, add a watermark, and then save the resulting image as a JPEG:

using (var reader = ImageReader.Create(@"Images\in.tif"))
using (var resize = new Resize(2048, 0, 
using (var drawer = new GraphicsDrawer())
using (var writer = ImageWriter.Create(@"Images\out.jpg"))
    drawer.Draw += delegate(object sender, 
                GraphicsDrawEventArgs e)
            var font = new Font("Calibri", e.Height / 20);
                var brush = new SolidBrush(RgbColor.Red);
                e.Graphics.DrawString("Graphics Mill", 
                        brush, 10, 10);
    Pipeline.Run(reader + resize + drawer + writer);

In addition to the above operations, C# image processing library can deconstruct input images into smaller components, process each of these individual components separately, and reconstruct the final image into a JPEG file. This enables the efficient handling of images of virtually unlimited size without risking any problems due to lack of memory. Graphics Mill C# image processing library is a very useful, powerful, and capable SDK that revolutionizes the image processing capabilities of C# developing.