Contains methods and properties used to write PNG images.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public sealed class PngWriter : ImageWriter
PNG (Portable Network Graphics) was created to replace the obsolete GIF format due to a legal problem caused by the LZW algorithm used in GIF. In comparison with GIF, the PNG format has three main advantages:
PNG supports palette-based images with palettes of 24-bit RGB or 32-bit RGBA colors, grayscale images (with or without alpha channel), and full-color non-palette-based images with or without alpha channel.
using (var reader = new PngReader(@"Images\in.png")) using (var rotate = new Rotate(90)) using (var writer = new PngWriter(@"Images\Output\out.png")) { writer.IsInterlaced = true; Pipeline.Run(reader + rotate + writer); }