Pipeline

Codecs Format Conversion Drawing Bitmap Pipeline Write Metadata Read Transform Color Conversion Text JPG TIFF Channels Filesystem Adobe Resources PDF Color Management Resize Color Adjustment Multiple frames Text Layout PSD Clipping Paths EXIF Formatted Text Branched Pipeline Personalization PSD Processor Color Profile Crop Extra Channels Graphics Container Interoperability Lossless JPEG Spot Color WEBP Font GIF IPTC Rotate Thumbnail WPF Advanced Art Text Indexed format PNG Stream TGA XMP Compression EPS Gradient Image Validation Modify Container SVG Watermark Green Screen Pixel Access Rasterization RAW Transparentize VDP Vignette BMP

Add Alpha Channel (Memory Friendly)

Generates an elliptical alpha channel and applies it to the source image using memory-friendly Pipeline API.

Adjust Colors Using Lab

Adjusts hue modifying [a] component of Lab color space.

Adjust Lightness (RGB)

Adjusts brightness modifying all channels of RGB color space.

Adjust Lightness Lab

Adjusts brightness modifying lightness channel of Lab color space.

Assemble Pipeline manually

In general, the Pipeline API assumes that each element may have several receivers, and each of them receives the same data to process. Here we illustrate how to implement the use case shown in the Create linear pipeline sample using the Pipeline class only for running, while constructing the data flow manually.

You can read more information about pipelines in the documentation.

CMYK To CMYK Using Device Link Profile

Converts one CMYK color space to another CMYK one using device link color profile.

Color Proofing

Color proofing - CMYK to RGB using destination (screen) and target device profile.

Combine channels

Combines image channels from multiple sources into a single image.

Combine Channels

Merges separate image channels into a single RGB image using Pipeline API.

Compare Image Format Compressions

Compares compression of WebP, JPEG and PNG image formats.

Conditionally adding pipeline elements

This sample demonstrates how to conditionally add elements to a pipeline based on the properties of the input image. It shows how to create thumbnails in the sRGB color space with a specified DPI value.

You can read more information about pipelines in the documentation.

Convert Animated GIF Image To WebP

Converts animated GIF image to WebP format.

Convert Clipping Path To TGA

Reads image in JPEG format, converts clipping path to alpha channel and saves to TARGA 32 format.

Copy Clipping Path (Memory Friendly)

Copies clipping path using memory-friendly Pipeline API.

Create linear pipeline

This sample demonstrates how to create a linear pipeline using simplified syntax. This is the most common use case, when all elements are known and their order is straightforward.

You can read more information about pipelines in the documentation.

Create Vignette

Creates a vignette with a specified color.

Crop

Crops image using memory-friendly Pipeline API.

Crop Image And Preserve Clipping Path

Crops image and preserves clipping path.

Draw text watermark on thumbnail image

This sample shows how to create a thumbnail image and draw a semi-transparent text watermark on top of it using the GraphicsMill transforms and advanced drawing APIs. It demonstrates how to resize the source image with the Resize transform, register a custom font, and render text with Drawer and PlainText. You can read more information about drawing in the documentation.

Draw Using Advanced Graphics

Performs drawing with AdvancedDrawing in the Pipeline API.

Draw Using GDI+ Graphics

Performs GDI+ drawing within the processing pipeline.

Get embedded profile using memory-friendly Pipeline API

Gets and displays information about the embedded profile using the memory-friendly Pipeline API.

Modify Clipping Path Explicitly (Memory Friendly)

Modifies clipping path explicitly using memory-friendly Pipeline API.

Multiple thumbnails

Creates two different-sized images from a single read of the source image. In most cases, reading the image is the bottleneck, so this approach significantly improves performance.

Preview RGB To CMYK On Screen (Memory Friendly)

Generates an RGB preview of CMYK color conversion using memory-friendly Pipeline API.

Read Convert And Write TGA

Reads image in TARGA 24 format and saves to TARGA 16 format with RLE compression.

Read image with WPF

Demonstrates passing an image to a pipeline with the custom image reader.

Read Multiframe TIFF Memory Friendly

Reads multiframe image in TIFF format using memory-friendly Pipeline API.

Recompress JPEG partially

Applies mosaic effect on region of image with partial JPEG recompression.

Resize

Resizes image using memory-friendly Pipeline API.

Resize And Preserve Metadata

Resize a JPEG and preserve/update metadata with Aurigma Graphics Mill. Halves width (keeps aspect), updates EXIF Software, adds IPTC keyword, sets Adobe copyright flag, adds XMP dc:contributor, and saves all metadata.

Resize Image And Clipping Path (Memory Friendly)

Resizes image and clipping path using memory-friendly Pipeline API.

Rgb To Cmyk Memory Friendly

Converts color space from RGB to CMYK with color management using memory-friendly Pipeline API.

Rotate

Rotates image using memory-friendly Pipeline API.

Split And Combine Channels

Splits an image into its RGB channels, adjusts each channel's brightness, and recombines them.

Split channels

Extracts individual channels from a CMYK image using channel splitter and saves them as separate files.

Split Channels

Split the RGB channels of an image, adjust their brightness individually, and save each channel as a separate image.

Swap Channels Memory Friendly

Demonstrates how to swap the Red and Green channels of an image using a memory-friendly pipeline approach.

TIFF Extra Channels To Spot Color Space

Converts a TIFF file with extra channels to PDF with separation color space.

Tint Using Alpha (Memory Friendly)

Tints using alpha channel and memory-friendly Pipeline API.

Tint Using Lab

Tints using Lab color space.

Using the OnInit event to configure pipeline elements

What if we want to adjust pipeline element settings depending on the actual input data? In most cases you have access to the source element, but in more sophisticated scenarios the pipeline may be large, and it may be hard to track all possible changes of the image parameters. Or you may decide to split the pipeline assembly logic into several methods. In this case, it is possible to change pipeline element settings from an OnInit event handler. You get the actual image parameters that the element receives from its source, and change the properties according to those parameters. In this example, we'll scale the original image by a factor of 2.5 while preserving its aspect ratio, and place a watermark image in the center. The watermark image will be half the size of the bottom image.

You can read more information about pipelines in the documentation.

Write Animated WebP

Writes simple animated image in WebP format.

Write EXIF and IPTC (Memory Friendly)

Writes EXIF and IPTC metadata using memory-friendly Pipeline API.

Write Extra Channel With Display Info

Saves extra channels with display info to Adobe Resources.

Write Extra Channel With Name

Save the name of an extra channel to Adobe Resources.

Write image with WPF

Demonstrates writing an image from a pipeline with the custom image writer.

Write Multiframe TIFF

Demonstrates how to create a TIFF file with multiple frames.

Write WebP Lossy And Lossless

Writes image in WebP lossy and lossless format.

For AI-assisted development: Download Graphics Mill Code Samples XML Catalog