---
title: "Drawing"
canonical: https://www.graphicsmill.com/samples/tags/drawing
product: "Graphics Mill"
---

# Drawing

Drawing vector shapes and text

- [Browse all samples](<https://www.graphicsmill.com/samples/index_md>)

## Samples

- [Add a tiled watermark to PDF pages](<https://www.graphicsmill.com/samples/Codecs/Pdf/AddWatermark_cs_md>): Adds a semi-transparent, rotated tiled text watermark to every page of a PDF file.
- [Add Alpha Channel](<https://www.graphicsmill.com/samples/ColorManagement/Channels/AddAlphaChannel_cs_md>): Adds an elliptical alpha channel to an image.
- [Add Alpha Channel (Memory Friendly)](<https://www.graphicsmill.com/samples/ColorManagement/Channels/AddAlphaChannelMemoryFriendly_cs_md>): Adds an elliptical alpha channel using a memory-friendly pipeline.
- [Art text](<https://www.graphicsmill.com/samples/Text/TextLayout/ArtTexts_cs_md>): Shows different types of art text effects using various styles.
- [Artistic Frame](<https://www.graphicsmill.com/samples/Drawing/DrawingImages/ArtisticFrame_cs_md>): Create an artistic photo frame composition with multiple images and effects.
- [Autofit](<https://www.graphicsmill.com/samples/Text/TextLayout/Autofit_cs_md>): Fits the largest possible text inside a specified shape area.
- [Bounded Text](<https://www.graphicsmill.com/samples/Text/TextLayout/BoundedText_cs_md>): Draws text inside a specific rectangular area using bounded text.
- [Colored Text](<https://www.graphicsmill.com/samples/Text/EnhancedText/ColoredText_cs_md>): Renders formatted, multi-colored text onto a bitmap image.
- [Colored Watermark](<https://www.graphicsmill.com/samples/Text/EnhancedText/ColoredWatermark_cs_md>): Applies a colored watermark to an image using a tiling brush and text rendering.
- [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.
- [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 Clipping Path To Mask](<https://www.graphicsmill.com/samples/Metadata/ClippingPath/ConvertClippingPathToMask_cs_md>): Converts a clipping path into an alpha channel mask for the image.
- [Convert Clipping Path To TGA](<https://www.graphicsmill.com/samples/Codecs/Tga/ConvertClippingPathToTga_cs_md>): Converts a clipping path from a JPEG to an alpha channel and saves as TGA.
- [Create a die-cut outline around artwork](<https://www.graphicsmill.com/samples/Drawing/Paths/CreateDieCutOutline_cs_md>): Traces the outline of a PNG with transparency, offsets and smooths it, and writes it as a spot-colour cut line to PDF.
- [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.
- [Create Vignette](<https://www.graphicsmill.com/samples/LargeImages/Transforms/CreateVignette_cs_md>): Creates a vignette effect with a specified color using advanced pipeline techniques.
- [Double Outline](<https://www.graphicsmill.com/samples/Text/EnhancedText/DoubleOutline_cs_md>): Draws text with a double outline effect and saves it as an image.
- [Double Path Text](<https://www.graphicsmill.com/samples/Text/TextLayout/DoublePathText_cs_md>): Draws text along two custom paths using double path text.
- [Draw Lists](<https://www.graphicsmill.com/samples/Text/FormattedText/DrawLists_cs_md>): Draws formatted text with various types of ordered and unordered lists.
- [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.
- [Draw Paragraphs](<https://www.graphicsmill.com/samples/Text/FormattedText/DrawParagraphs_cs_md>): Draws multiple formatted text paragraphs with custom styles.
- [Draw Path](<https://www.graphicsmill.com/samples/Drawing/DrawingPrimitives/DrawPath_cs_md>): Draw vector shapes and styled text using a custom path.
- [Draw Spot On CMYK](<https://www.graphicsmill.com/samples/Codecs/SpotColors/DrawSpotOnCmyk_cs_md>): Draws text and an image on a spot channel over a CMYK background in a PDF.
- [Draw text watermark on thumbnail image](<https://www.graphicsmill.com/samples/LargeImages/Transforms/TextWatermarkOnThumnail_cs_md>): Creates a thumbnail and draws a semi-transparent text watermark using transforms and drawing APIs.
- [Draw Using Advanced Graphics](<https://www.graphicsmill.com/samples/LargeImages/Drawing/DrawUsingAdvancedGraphics_cs_md>): Draw a rectangle on an image using advanced graphics in the Pipeline API.
- [Draw With Clipping Path](<https://www.graphicsmill.com/samples/Drawing/ClippingPaths/DrawWithClippingPath_cs_md>): Draw an image within an elliptical clipping path.
- [Fade and shape images with soft masks](<https://www.graphicsmill.com/samples/Drawing/ClippingPaths/ApplySoftMask_cs_md>): Fades a photo with a gradient luminosity mask and cuts another to the shape of a PNG with an alpha mask, then writes them to PDF.
- [Font API](<https://www.graphicsmill.com/samples/Text/FontRegistry/FontAPI_cs_md>): Renders text by drawing individual character outlines using a custom font.
- [Font Fallback](<https://www.graphicsmill.com/samples/Text/FontRegistry/FontFallback_cs_md>): Draws multilanguage text with font fallback support for missing characters.
- [Font Metrics](<https://www.graphicsmill.com/samples/Text/FontRegistry/FontMetrics_cs_md>): Loads a custom font and displays its metrics and properties.
- [Gradient Color](<https://www.graphicsmill.com/samples/Text/EnhancedText/GradientColor_cs_md>): Draws text with a gradient fill and saves it as an image.
- [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 fonts on demand with the FontMissing event](<https://www.graphicsmill.com/samples/Text/FontRegistry/LoadFontsOnDemand_cs_md>): Adds fonts to a CustomFontRegistry only when text asks for them, using the FontMissing event.
- [Map template font names with aliases and remove fonts](<https://www.graphicsmill.com/samples/Text/FontRegistry/FontAliasesAndRemoval_cs_md>): Adds fonts and checks the add status, maps role names to fonts with aliases, and removes a font from a CustomFontRegistry.
- [Matrix Transform](<https://www.graphicsmill.com/samples/Drawing/Transform/MatrixTransform_cs_md>): Apply matrix transformations to graphics for drawing shapes and text.
- [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.
- [Path Bounded Text](<https://www.graphicsmill.com/samples/Text/TextLayout/PathBoundedText_cs_md>): Draws text inside multiple bounding paths and wraps it around a custom path.
- [Path Text](<https://www.graphicsmill.com/samples/Text/TextLayout/PathText_cs_md>): Draws text along a custom path using a Bezier curve.
- [PDF Layers](<https://www.graphicsmill.com/samples/Codecs/Pdf/Layers_cs_md>): Creates a PDF document with multiple visible and invisible layers.
- [Plain Text](<https://www.graphicsmill.com/samples/Text/TextLayout/PlainText_cs_md>): Demonstrates rendering of plain horizontal and vertical text.
- [Reflected Text](<https://www.graphicsmill.com/samples/Text/EnhancedText/ReflectedText_cs_md>): Creates a mirrored text effect and saves the result as an image.
- [Replace Process Color](<https://www.graphicsmill.com/samples/Codecs/SpotColors/ReplaceProcessColor_cs_md>): Converts a process color to a spot color and saves the result as a PDF.
- [Save Spot Image To PDF](<https://www.graphicsmill.com/samples/Codecs/SpotColors/SaveSpotImageToPdf_cs_md>): Creates an image with a spot color and saves it to a PDF file.
- [Show Custom Font Metrics](<https://www.graphicsmill.com/samples/Text/FontRegistry/ShowCustomFontMetrics_cs_md>): Loads a custom font and visualizes its metrics and text layout.
- [Subscript and Superscript](<https://www.graphicsmill.com/samples/Text/EnhancedText/SubscriptSuperscript_cs_md>): Draws text with subscript and superscript formatting.
- [Text Effects](<https://www.graphicsmill.com/samples/Text/EnhancedText/TextEffects_cs_md>): Applies shadow and glow effects to text rendering.
- [Text Frames](<https://www.graphicsmill.com/samples/Text/TextLayout/TextFrames_cs_md>): Renders text in multiple columns and along a curved path.
- [TIFF Extra Channels To Spot Color Space](<https://www.graphicsmill.com/samples/Codecs/SpotColors/TiffExtraChannelsToPdfSpot_cs_md>): Converts a TIFF with extra channels to a PDF using separation color space.
- [Vertical Text](<https://www.graphicsmill.com/samples/Text/TextLayout/VerticalText_cs_md>): Draws vertical text inside a shape and at a specific point on the canvas.
- [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.
- [Wrapping Paths](<https://www.graphicsmill.com/samples/Text/TextLayout/WrappingPaths_cs_md>): Wraps text inside a rectangle, excluding regions defined by a wrapping path.
- [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 Animated WebP](<https://www.graphicsmill.com/samples/Codecs/WebP/WriteAnimatedWebP_cs_md>): Create a simple animated image in WebP format.
- [Write raster and vector graphics to EPS](<https://www.graphicsmill.com/samples/Codecs/Eps/WriteRasterAndVectorGraphicsToEps_cs_md>): Creates an EPS file with both a bitmap and vector graphics, including shapes and styled text.
- [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.

