Codecs
Samples demonstrating basic image encoding and decoding across supported formats. Shows how to read from and write to files and streams, and perform simple format transcoding. Includes minimal, focused examples suitable for integration into a pipeline API.
BMP
These samples show how to read BMP images, convert them to 8‑bit indexed format, and save with RLE compression; they also demonstrate writing BMP from a JPEG after a vertical flip.
Custom Codecs
Samples for implementing and registering custom image codecs for specialized formats.
Eps
These samples demonstrate working with Encapsulated PostScript files. They show how to extract an embedded TIFF preview and convert it to PNG, and how to write EPS directly from a raster image. You can also generate EPS with mixed raster and vector content such as images, shapes, and text while controlling page dimensions.
Graphics Interchange Format (GIF)
Loading, saving, and optimizing GIFs, including animation and palette handling.
JPEG
Reading and writing JPEG with quality, chroma subsampling, and progressive options.
Loading and Saving Images
Common patterns for decoding from and encoding to various image formats using the supported codecs.
These samples demonstrate creating and exporting PDF documents with both raster and vector content, including drawing shapes, images, and embedded text. They cover single‑ and multi‑page output, layer visibility control, writing text as real PDF text, and size reduction with compression settings.
Portable Network Graphics (PNG)
Working with PNG color types, alpha transparency, interlacing, and compression levels.
Raw Image Formats (RAW)
Extract thumbnails from RAW files.
Smart Image Optimization
Automated choices for format, quality, and resizing to balance fidelity and file size.
Spot Colors
Handling spot color channels and converting spot colors to process where needed.
Truevision TARGA (TGA)
Loading and saving TGA with pixel formats, RLE compression, and color maps.
Tagged Image File Format (TIFF)
Working with multi-page TIFF, compression schemes, bit depths, and tiled/striped storage.
Vector Formats
Demonstrates how to load vector data from various formats, modify it, and save it back.
WebP
Encoding and decoding WebP with lossy/lossless modes, alpha, and animation.
For AI-assisted development: Download Graphics Mill Code Samples XML Catalog