---
title: "Bitmap"
canonical: https://www.graphicsmill.com/samples/tags/bitmap
product: "Graphics Mill"
---

# Bitmap

Working with images via the Bitmap API

- [Browse all samples](<https://www.graphicsmill.com/samples/index_md>)

## Samples

- [Add Alpha Channel](<https://www.graphicsmill.com/samples/ColorManagement/Channels/AddAlphaChannel_cs_md>): Adds an elliptical alpha channel to an image.
- [Adjust HSL](<https://www.graphicsmill.com/samples/Transforms/ColorAdjustment/AdjustHsl_cs_md>): Adjusts the hue, saturation, and lightness of an image.
- [Apply LUT](<https://www.graphicsmill.com/samples/Transforms/AdvancedToneCorrection/ApplyLut_cs_md>): Applies a look-up table (LUT) correction to an image.
- [Artistic Frame](<https://www.graphicsmill.com/samples/Drawing/DrawingImages/ArtisticFrame_cs_md>): Create an artistic photo frame composition with multiple images and effects.
- [Assign a color profile to a bitmap](<https://www.graphicsmill.com/samples/ColorManagement/ColorProfile/SetEmbeddedProfile_cs_md>): Replaces the embedded color profile of an image with a new one.
- [Auto Brightness](<https://www.graphicsmill.com/samples/Transforms/BrightnessAndContrast/AutoBrightness_cs_md>): Automatically adjusts the brightness of an image.
- [Auto Contrast](<https://www.graphicsmill.com/samples/Transforms/BrightnessAndContrast/AutoContrast_cs_md>): Automatically adjusts the contrast of an image.
- [Autorotate](<https://www.graphicsmill.com/samples/Transforms/RotateAndFlip/Autorotate_cs_md>): Rotates an image automatically using EXIF orientation metadata.
- [Bezier Transform](<https://www.graphicsmill.com/samples/Transforms/Bezier/Bezier_cs_md>): Applies a Bezier transformation to an image using control points.
- [Brightness](<https://www.graphicsmill.com/samples/Transforms/BrightnessAndContrast/Brightness_cs_md>): Adjusts the brightness of an image.
- [Brightness Contrast](<https://www.graphicsmill.com/samples/Transforms/BrightnessAndContrast/BrightnessContrast_cs_md>): Adjusts the brightness and contrast of an image.
- [Channel Balance](<https://www.graphicsmill.com/samples/Transforms/ColorAdjustment/ChannelBalance_cs_md>): Adjusts the balance of color channels in an image.
- [Combine shapes with boolean path operations](<https://www.graphicsmill.com/samples/Drawing/Paths/CombinePaths_cs_md>): Combines a circle and a square with union, intersection, subtraction, and exclusive or.
- [Contrast](<https://www.graphicsmill.com/samples/Transforms/BrightnessAndContrast/Contrast_cs_md>): Adjusts the contrast of an image.
- [Convert a dashed stroke into filled shapes](<https://www.graphicsmill.com/samples/Drawing/Paths/OutlineDashedStroke_cs_md>): Converts a dashed stroke with round caps into closed outlines with Path.Widen and measures their area.
- [Convert CMYK to RGB](<https://www.graphicsmill.com/samples/ColorManagement/ConvertingPixelFormats/ConvertCmykToRgb_cs_md>): Converts a CMYK image to RGB using color management.
- [Convert colors using LittleCMS](<https://www.graphicsmill.com/samples/ColorManagement/ColorManagementEngines/ConvertColorsLittleCms_cs_md>): Convert an image's color space using LittleCMS.
- [Convert From WPF](<https://www.graphicsmill.com/samples/Interoperability/WPFInteroperability/ConvertFromWPF_cs_md>): Convert a WPF BitmapFrame to a GraphicsMill Bitmap.
- [Convert To Indexed](<https://www.graphicsmill.com/samples/ColorManagement/ConvertingPixelFormats/ConvertToIndexed_cs_md>): Converts an RGB image to an 8-bit indexed format with dithering and a custom palette.
- [Convert To WPF](<https://www.graphicsmill.com/samples/Interoperability/WPFInteroperability/ConvertToWPF_cs_md>): Convert a GraphicsMill Bitmap to a WPF BitmapSource.
- [Copy Clipping Path](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/CopyClippingPath_cs_md>): Copies all Adobe resources, including clipping paths, to a new JPEG.
- [Crop](<https://www.graphicsmill.com/samples/Transforms/Crop/Crop_cs_md>): Crops an image to a specified rectangular region.
- [Desaturate](<https://www.graphicsmill.com/samples/Transforms/ColorAdjustment/Desaturate_cs_md>): Converts an image to grayscale by removing color.
- [Draw Path](<https://www.graphicsmill.com/samples/Drawing/DrawingPrimitives/DrawPath_cs_md>): Draw vector shapes and styled text using a custom path.
- [Draw With Clipping Path](<https://www.graphicsmill.com/samples/Drawing/ClippingPaths/DrawWithClippingPath_cs_md>): Draw an image within an elliptical clipping path.
- [Flip](<https://www.graphicsmill.com/samples/Transforms/RotateAndFlip/Flip_cs_md>): Flips an image vertically or horizontally.
- [Get embedded profile](<https://www.graphicsmill.com/samples/ColorManagement/ColorProfile/GetEmbeddedProfile_cs_md>): Displays information about the embedded color profile in an image.
- [Hash From Bitmap](<https://www.graphicsmill.com/samples/Interoperability/HashFromBitmap/HashFromBitmap_cs_md>): Compute an MD5 hash from bitmap pixel data using unsafe scanline access.
- [Levels](<https://www.graphicsmill.com/samples/Transforms/AdvancedToneCorrection/Levels_cs_md>): Adjusts image levels using custom input and output values.
- [Matrix Transform](<https://www.graphicsmill.com/samples/Drawing/Transform/MatrixTransform_cs_md>): Apply matrix transformations to graphics for drawing shapes and text.
- [Maximum](<https://www.graphicsmill.com/samples/Transforms/MinimumMaximumMedian/Maximum_cs_md>): Applies the Maximum filter to an image.
- [Median](<https://www.graphicsmill.com/samples/Transforms/MinimumMaximumMedian/Median_cs_md>): Applies the Median filter to an image.
- [Minimum](<https://www.graphicsmill.com/samples/Transforms/MinimumMaximumMedian/Minimum_cs_md>): Applies the Minimum filter to an image.
- [Modify Clipping Path Explicitly](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/ModifyClippingPathExplicitly_cs_md>): Crops an image and updates its clipping path explicitly.
- [Overlay an Image onto Another Image](<https://www.graphicsmill.com/samples/Drawing/DrawingImages/DrawingImage_cs_md>): Overlay a watermark image onto another image using advanced graphics.
- [Preserve Color Profile And Metadata (System.Drawing Interop)](<https://www.graphicsmill.com/samples/Interoperability/SystemDrawingInteroperability/PreserveColorProfileAndMetadata_cs_md>): Convert between GraphicsMill and System.Drawing bitmaps while preserving metadata and color profile.
- [Preview RGB To CMYK On Screen](<https://www.graphicsmill.com/samples/ColorManagement/RGBToCMYK/PreviewRgbToCmykOnScreen_cs_md>): Simulates CMYK color conversion and previews the result as it would appear on screen.
- [Process Non-RGB (System.Drawing Interop)](<https://www.graphicsmill.com/samples/Interoperability/SystemDrawingInteroperability/ProcessNonRgb_cs_md>): Process non-RGB images for System.Drawing interop, preserving color and metadata.
- [Rasterize a PDF page two ways: quick vs. full control](<https://www.graphicsmill.com/samples/Codecs/Pdf/RasterizePdfTwoWays_cs_md>): Compares PdfFrame.GetBitmap, a quick RGB24 preview, against GraphicsContainerRasterizer, which allows any pixel format and resolution.
- [Read and Write JPEG](<https://www.graphicsmill.com/samples/Codecs/Jpeg/ReadAndWriteJpeg_cs_md>): Reads a JPEG image, flips it vertically, and saves it as a new JPEG with high-quality settings.
- [Read TIFF](<https://www.graphicsmill.com/samples/Codecs/Tiff/ReadTiff_cs_md>): Reads the first frame of a TIFF image and saves it as a JPEG file.
- [Remove a plain background around a logo](<https://www.graphicsmill.com/samples/Transforms/BackgroundRemoval/RemoveContiguousBackground_cs_md>): Makes the background around a logo transparent while keeping enclosed areas of the same colour opaque.
- [Remove Alpha Channel](<https://www.graphicsmill.com/samples/ColorManagement/Channels/RemoveAlphaChannel_cs_md>): Removes the alpha channel and replaces it with a solid color.
- [Remove Green Screen](<https://www.graphicsmill.com/samples/Transforms/GreenScreenRemoval/RemoveGreenScreen_cs_md>): Removes a green screen background from an image.
- [Resize](<https://www.graphicsmill.com/samples/Transforms/Resize/Resize_cs_md>): Resizes an image while maintaining its aspect ratio.
- [Resize Sharp](<https://www.graphicsmill.com/samples/Transforms/Resize/ResizeSharp_cs_md>): Resizes an image while preserving sharpness, similar to Photoshop's Bicubic Sharper.
- [Rgb To Cmyk color space conversion](<https://www.graphicsmill.com/samples/ColorManagement/RGBToCMYK/RgbToCmyk_cs_md>): Converts an RGB image to CMYK with color management using the object-based API.
- [Rotate](<https://www.graphicsmill.com/samples/Transforms/RotateAndFlip/Rotate_cs_md>): Rotates an image by 90, 180, or 270 degrees.
- [Rotate Arbitrary](<https://www.graphicsmill.com/samples/Transforms/RotateAndFlip/RotateArbitrary_cs_md>): Rotates an image by any angle with a specified background color.
- [Simple Conversion (System.Drawing Interop)](<https://www.graphicsmill.com/samples/Interoperability/SystemDrawingInteroperability/SimpleConversion_cs_md>): Convert between GraphicsMill and System.Drawing bitmaps for RGB images.
- [Swap Channels](<https://www.graphicsmill.com/samples/ColorManagement/Channels/SwapChannels_cs_md>): Swaps color channels of an image, such as blue and green.
- [Tint Using Alpha](<https://www.graphicsmill.com/samples/Transforms/Tint/TintUsingAlpha_cs_md>): Applies a tint to an image using the alpha channel.
- [Transparentize](<https://www.graphicsmill.com/samples/ColorManagement/Channels/Transparentize_cs_md>): Makes a specific color in the image transparent.
- [Visualize Clipping Path](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/VisualizeClippingPath_cs_md>): Shows how to visualize and draw clipping paths on images for demonstration.
- [Write bitmap to EPS](<https://www.graphicsmill.com/samples/Codecs/Eps/WriteBitmapToEps_cs_md>): Loads a JPEG image and saves it directly as an EPS file.
- [Write Extra Channel](<https://www.graphicsmill.com/samples/Codecs/Tiff/WriteExtraChannel_cs_md>): Adds an extra alpha channel to a TIFF image using a grayscale bitmap.
- [Write TIFF](<https://www.graphicsmill.com/samples/Codecs/Tiff/WriteTiff_cs_md>): Convert a JPEG image to TIFF format with JPEG compression.

