Bitmap
View as MarkdownAdd 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.
Combine shapes with boolean path operations
This sample shows how to build new shapes from existing ones with the boolean operations of the Path class: Path.Union, Path.Intersect, Path.Subtract, and Path.Xor. These static methods leave their arguments unchanged and return a new path, so the same two source shapes can be combined in several ways. The result is real vector geometry, so it can be filled, stroked, written to PDF, or used as a clipping path.
Contrast
Adjusts contrast.
Convert a dashed stroke into filled shapes
This sample shows how to turn the stroke of a path into an outline that can be filled, measured, or combined with other shapes, like "Outline Stroke" in vector editors. Path.Widen takes everything from a Pen: its width, line caps, joins, and dash pattern, so every dash of a dashed line becomes a closed shape of its own. This is what cutting, engraving, and embroidery software needs, as it follows outlines and knows nothing about strokes. Path.GetArea then gives the area the stroke covers.
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 a plain background around a logo
This sample shows how to make the background of a logo or a product shot transparent with the ContiguousBackgroundRemoval transform. The background is everything that can be reached from the border of the image through pixels of similar colour, so areas of the same colour that the subject encloses stay opaque: the white letters on the badge are kept, while a colour key such as Transparentize would punch them out too. The background colour is detected automatically from the border of the image.
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.