Bitmap

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

Add Alpha Channel

Generates an elliptical alpha channel and applies it to the source image.

Adjust HSL

Adjusts HSL (Hue-Saturation-Lightness) balance.

Apply LUT

Applies LUT (look-up table) correction.

Artistic Frame

Draws artistic frame.

Assign a color profile to a bitmap

Replaces the embedded color profile of an image with a new one.

Auto Brightness

Adjusts brightness automatically.

Auto Contrast

Adjusts contract automatically.

Autorotate

Automatically rotates image based on EXIF orientation metadata.

Bezier Transform

Performs a Bezier transform on an image using the specified control points.

Brightness

Adjusts brightness.

Brightness Contrast

Adjusts brightness/contrast.

Channel Balance

Modifies channel balance.

Contrast

Adjusts contrast.

Convert CMYK to RGB

Converts color space from CMYK to RGB with color management.

Convert colors using LittleCMS

Uses LittleCMS to convert the image's color space.

Convert From WPF

Converts WPF BitmapFrame to GraphicsMill Bitmap.

Convert To Indexed

Converts to indexed pixel format (optimized for Web).

Convert To WPF

Converts Graphics Mill Bitmap to WPF BitmapSource.

Copy Clipping Path

Copies all Adobe resources including clipping path.

Crop

Crops image.

Desaturate

Desaturates image.

Draw Path

Draws path on Graphics.

Draw With Clipping Path

Draws an image onto a Graphics object using a clipping path.

Flip

Flips image.

Get embedded profile

Gets and displays information about the embedded profile.

Hash From Bitmap

Demonstrates computing an MD5 hash from bitmap pixel data via unsafe pointer-based scanline access.

Levels

Apply custom levels adjustment to an image.

Matrix Transform

Applies matrix transformation to graphics.

Maximum

Applies the Maximum transform to the image.

Median

Applies the Median transform to the image.

Minimum

Applies the Minimum transform to the image.

Modify Clipping Path Explicitly

Modifies clipping path explicitly.

Overlay an Image onto Another Image

Apply a watermark image onto a base image using advanced graphics drawing features.

Preserve Color Profile And Metadata (System.Drawing Interop)

Converts Aurigma.GraphicsMill.Bitmap to System.Drawing.Bitmap and vice versa preserving metadata.

Preview RGB To CMYK On Screen

Generates an RGB preview of CMYK color conversion.

Process Non-RGB (System.Drawing Interop)

Loads non-RGB image with Aurigma.GraphicsMill.Bitmap, pass it to System.Drawing.Bitmap and convert it back to Aurigma.GraphicsMill.Bitmap.

Rasterize a PDF page two ways: quick vs. full control

This sample compares the two ways to turn a PDF page into a bitmap. PdfFrame.GetBitmap is the quickest option, but it always returns a 24-bit RGB bitmap at the page's own resolution. Getting the page's vector content with GetContent and rasterizing it separately with GraphicsContainerRasterizer is slower, since rendering goes through the vector content rather than a ready-made bitmap, but it allows any target pixel format and resolution, such as an alpha-capable format at a higher DPI than the source page.

Read and Write JPEG

Reads and writes image in JPEG format.

Read TIFF

Reads first frame of image in TIFF format.

Remove Alpha Channel

Removes alpha channel and replaces it with a solid color.

Remove Green Screen

Removes green screen using standard approach.

Resize

Resizes image.

Resize Sharp

Resizes image and maintains original sharpness (like Bicubic Sharper mode in Photoshop).

Rgb To Cmyk color space conversion

Converts color space from RGB to CMYK with color management.

Rotate

Rotates image on 90, 180, 270 degrees.

Rotate Arbitrary

Rotates image on arbitrary angle.

Simple Conversion (System.Drawing Interop)

Converts Aurigma.GraphicsMill.Bitmap to System.Drawing.Bitmap and vice versa.

Swap Channels

Demonstrates how to swap color channels of an image (in this case, blue and green channels).

Tint Using Alpha

Tints using alpha channel.

Transparentize

Sets alpha values of pixels with a given color to transparent.

Visualize Clipping Path

Visualizes clipping path for demonstration purposes.

Write bitmap to EPS

Saves bitmap to EPS format.

Write Extra Channel

Creates a TIFF image with an extra channel.

Write TIFF

Loads a JPEG image and converts it to TIFF format.

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