Code Samples
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
This repository contains runnable C# samples demonstrating Aurigma GraphicsMill features. It’s organized by topic (Codecs, Drawing, Transforms, etc.).
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.
ColorManagement
These samples demonstrate working with color profiles and color spaces, including converting between CMYK, RGB, LAB, and Grayscale with and without color management. They cover assigning and retaining embedded ICC profiles, proofing with destination and target device profiles, and reading profile metadata without decoding full images. Channel operations such as adding, removing, splitting, and combining alpha and color channels are included, along with spot colors and extra channel handling.
Drawing
These samples demonstrate drawing primitives, text, and images using brushes and pens, and working with paths, clipping, and transformations.
Interoperability
These samples focus on interoperability with other .NET components and frameworks. They demonstrate exchanging image data with WPF (`BitmapSource`/`WriteableBitmap`) and System.Drawing, working through streams and byte arrays, and plugging in custom readers or writers when needed.
Pipeline API
These samples focus on processing very large images efficiently using streaming pipelines that avoid loading full bitmaps into memory. They demonstrate stripe‑based processing, splitting images into tiles, and composing flows with multiple sources and receivers. Scenarios include resizing, rotating, and cropping in a memory‑friendly way, tracking progress, and supporting cancellation for long‑running jobs.
Metadata
These samples show how to read and write image metadata, including EXIF, IPTC, XMP, and Adobe image resource blocks. They demonstrate preserving metadata during conversions and resizes, as well as performing lossless updates in formats like JPEG and TIFF. Examples cover extracting and embedding thumbnails and working with clipping paths stored as metadata. You can also access metadata without decoding full bitmaps and map fields to strongly typed structures where available.
PSD format
These samples demonstrate how to work with Adobe Photoshop (PSD) files. Topics include accessing layers, masks, and channels; reading visibility and blending modes; and extracting raster content as needed.
Text
These samples showcase various text rendering capabilities, including alternate layouts, multi-frame text flow, and color effects.
Transforms
These samples demonstrate common image transforms and filters including resize, rotate and flip, crop, and color or tone adjustments. They include brightness/contrast changes, tinting, bezier-based operations, and minimum/maximum/median filters for simple noise reduction.
For AI-assisted development: Download Graphics Mill Code Samples XML Catalog