---
title: "Write"
canonical: https://www.graphicsmill.com/samples/tags/write
product: "Graphics Mill"
---

# Write

Writing images with codecs

- [Browse all samples](<https://www.graphicsmill.com/samples/index_md>)

## Samples

- [Add and remove pages in an existing PDF](<https://www.graphicsmill.com/samples/Codecs/Pdf/AddAndRemovePages_cs_md>): Rebuilds an existing PDF page by page, removing one page and inserting a new one.
- [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.
- [Combine channels](<https://www.graphicsmill.com/samples/ColorManagement/Channels/CombineChannels_cs_md>): Combines image channels from multiple sources into one image.
- [Combine multiple PDF files into one document](<https://www.graphicsmill.com/samples/Codecs/Pdf/MergePages_cs_md>): Combines the pages of several existing PDF files into one multi-page PDF document.
- [Convert And Write JPEG](<https://www.graphicsmill.com/samples/Codecs/Jpeg/ConvertAndWriteJpeg_cs_md>): Converts an image to 24bpp RGB format and saves it as a JPEG file.
- [Copy Clipping Path](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/CopyClippingPath_cs_md>): Copies all Adobe resources, including clipping paths, to a new JPEG.
- [Copy Clipping Path (Memory Friendly)](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/CopyClippingPathMemoryFriendly_cs_md>): Copies clipping paths using a memory-efficient pipeline.
- [Create a PDF/X-4 file with CMYK output intent](<https://www.graphicsmill.com/samples/Codecs/Pdf/CreateX4_cs_md>): Creates a PDF/X-4 file with CMYK output intent and color-managed images.
- [Create Business Card](<https://www.graphicsmill.com/samples/Codecs/Pdf/CreateBusinessCard_cs_md>): Creates a business card layout and saves it as a PDF file.
- [Create Clipping Path](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/CreatePath_cs_md>): Creates and embeds a clipping path from an SVG file into a JPEG image.
- [Create Multipage PDF](<https://www.graphicsmill.com/samples/Codecs/Pdf/CreateMultipagePDF_cs_md>): Generates personalized multipage PDF invitations with variable data.
- [Crop Image And Preserve Clipping Path](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/CropImageAndPreserveClippingPath_cs_md>): Crops an image while preserving its clipping path.
- [Crop Jpeg Losslessly](<https://www.graphicsmill.com/samples/Codecs/Jpeg/CropJpegLosslessly_cs_md>): Performs a lossless crop on a JPEG image and saves the result.
- [Draw On PDF With Spot Color](<https://www.graphicsmill.com/samples/Codecs/SpotColors/DrawOnPdfWithSpotColor_cs_md>): Fills a rectangle with a PANTONE spot color in a PDF document.
- [Flip Jpeg Losslessly](<https://www.graphicsmill.com/samples/Codecs/Jpeg/FlipJpegLosslessly_cs_md>): Flips a JPEG image horizontally without recompression, preserving image quality.
- [Lay out paragraphs, lists, and tab-aligned columns in a PDF](<https://www.graphicsmill.com/samples/Codecs/Pdf/AdvancedTypography_cs_md>): Lays out paragraphs, a bulleted list, and a dot-leader tab-aligned schedule directly in a PDF.
- [Load Multiframe Image](<https://www.graphicsmill.com/samples/Codecs/LoadingAndSavingImages/LoadMultiframeImage_cs_md>): Loads a multi-frame TIFF image and saves each frame as a separate JPEG file.
- [Load Save Stream](<https://www.graphicsmill.com/samples/Codecs/LoadingAndSavingImages/LoadSaveStream_cs_md>): Loads an image from a stream, applies JPEG quality settings, and saves it to another stream.
- [Modify Clipping Path Explicitly](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/ModifyClippingPathExplicitly_cs_md>): Crops an image and updates its clipping path explicitly.
- [Modify Clipping Path Explicitly (Memory Friendly)](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/ModifyClippingPathExplicitlyMemoryFriendly_cs_md>): Modifies a clipping path and image using a memory-friendly pipeline.
- [Overlay one PDF's graphics onto another](<https://www.graphicsmill.com/samples/Codecs/Pdf/OverlayPages_cs_md>): Overlays the vector content of one PDF, a seal, onto every page of another PDF.
- [PDF Layers](<https://www.graphicsmill.com/samples/Codecs/Pdf/Layers_cs_md>): Creates a PDF document with multiple visible and invisible layers.
- [Place JPEG photos into a PDF without recompression](<https://www.graphicsmill.com/samples/Codecs/Pdf/PlaceJpegWithoutRecompression_cs_md>): Embeds RGB and CMYK JPEG files into a PDF byte for byte with CompressedImage, which is faster and uses less memory than decoding and recompressing them.
- [Process Complex EXIF Types](<https://www.graphicsmill.com/samples/Metadata/EXIFAndIPTC/ProcessComplexExifTypes_cs_md>): Read and modify complex EXIF tags in a JPEG image.
- [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 and write PDF page boxes](<https://www.graphicsmill.com/samples/Codecs/Pdf/PageBoxes_cs_md>): Defines print production page boxes (bleed, trim, art) on a 300 DPI PDF using UnitConverter, then reads them back with PdfReader.
- [Read Animated Gif](<https://www.graphicsmill.com/samples/Codecs/Gif/ReadAnimatedGif_cs_md>): Reads all frames from an animated GIF and saves each as a separate file.
- [Read image with WPF](<https://www.graphicsmill.com/samples/Codecs/CustomCodecs/ReadImageWithWPF_cs_md>): Shows how to use a custom WPF image reader to pass an image into a processing pipeline.
- [Recolor Red Strokes](<https://www.graphicsmill.com/samples/Codecs/VectorFormats/RecolorRedStrokes_cs_md>): Detect and recolor red strokes in a graphics container.
- [Recompress JPEG partially](<https://www.graphicsmill.com/samples/Codecs/Jpeg/RecompressJpegPartially_cs_md>): Applies a mosaic effect to a region of a JPEG image and updates only that region using partial recompression.
- [Resize And Preserve Metadata](<https://www.graphicsmill.com/samples/Metadata/PreservingMetadata/ResizeAndPreserveMetadata_cs_md>): Resizes a JPEG image and preserves or updates all metadata.
- [Resize Animated Gif](<https://www.graphicsmill.com/samples/Codecs/Gif/ResizeAnimatedGif_cs_md>): Resizes an animated GIF to fixed dimensions while preserving animation properties.
- [Resize Image And Clipping Path (Memory Friendly)](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/ResizeImageAndClippingPathMemoryFriendly_cs_md>): Resizes an image and its clipping path using a memory-efficient pipeline.
- [Resize while reading JPEG](<https://www.graphicsmill.com/samples/Codecs/Jpeg/ResizeWhileReadingJpeg_cs_md>): Resizes a JPEG image by a factor of 2 during decoding using the codec’s built-in scaling.
- [Rotate JPEG losslessly](<https://www.graphicsmill.com/samples/Codecs/Jpeg/RotateJpegLosslessly_cs_md>): Rotates a JPEG image 90 degrees clockwise without recompression, preserving quality.
- [Save Multiframe Image](<https://www.graphicsmill.com/samples/Codecs/LoadingAndSavingImages/SaveMultiframeImage_cs_md>): Saves multiple images as frames in a single multipage TIFF file.
- [Update JPEG metadata losslessly](<https://www.graphicsmill.com/samples/Codecs/Jpeg/UpdateJpegMetadataLosslessly_cs_md>): Updates JPEG metadata (IPTC, EXIF, XMP) without recompressing the image.
- [Write Animated Gif](<https://www.graphicsmill.com/samples/Codecs/Gif/WriteAnimatedGif_cs_md>): Creates an animated GIF by generating frames with a moving green circle.
- [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 EXIF and IPTC](<https://www.graphicsmill.com/samples/Metadata/EXIFAndIPTC/WriteExifIptc_cs_md>): Writes custom EXIF and IPTC metadata to a JPEG image.
- [Write EXIF and IPTC (Memory Friendly)](<https://www.graphicsmill.com/samples/Metadata/EXIFAndIPTC/WriteExifIptcMemoryFriendly_cs_md>): Writes EXIF and IPTC metadata to a JPEG using a memory-friendly pipeline.
- [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 Extra Channel With Display Info](<https://www.graphicsmill.com/samples/Codecs/Tiff/WriteExtraChannelWithDisplayInfo_cs_md>): Saves extra channels with display info to Adobe resources in a TIFF file.
- [Write Extra Channel With Name](<https://www.graphicsmill.com/samples/Codecs/Tiff/WriteExtraChannelWithName_cs_md>): Saves an extra channel with a custom name to a TIFF image using Adobe resources.
- [Write image with WPF](<https://www.graphicsmill.com/samples/Codecs/CustomCodecs/WriteImageWithWPF_cs_md>): Demonstrates saving an image from a pipeline using a custom WPF image writer.
- [Write Multiframe TIFF](<https://www.graphicsmill.com/samples/Codecs/Tiff/WriteMultiframeTiff_cs_md>): Create a TIFF file with multiple frames, each with its own compression.
- [Write Raster And Vector Graphics To PDF](<https://www.graphicsmill.com/samples/Codecs/Pdf/WriteRasterAndVectorGraphicsToPdf_cs_md>): Saves both raster and vector graphics to a PDF file with compression.
- [Write Text To PDF](<https://www.graphicsmill.com/samples/Codecs/Pdf/WriteTextToPDF_cs_md>): Writes plain and round text as PDF text with embedded fonts.

