Permalink
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (52 sloc) 2.86 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Using a Brush to Fill Shapes
03/30/2017
.net-framework
dotnet-winforms
article
jsharp
examples [Windows Forms], brushes
shapes, filling
brushes
bf8f7fff-5a90-41e8-9051-494449fb2844
14
dotnet-bot
dotnetcontent
wpickett

Using a Brush to Fill Shapes

A [!INCLUDEndptecgdiplus] xref:System.Drawing.Brush object is used to fill the interior of a closed shape. [!INCLUDEndptecgdiplus] defines several fill styles: solid color, hatch pattern, image texture, and color gradient.

In This Section

How to: Fill a Shape with a Solid Color
Describes how to use a solid-color brush to fill shapes.

How to: Fill a Shape with a Hatch Pattern
Shows how to use a hatch brush to fill shapes.

How to: Fill a Shape with an Image Texture
Explains how to use a texture brush to fill shapes.

How to: Tile a Shape with an Image
Describes how to tile an image in a shape.

Reference

xref:System.Drawing.Brush?displayProperty=nameWithType
Describes this class and contains links to all of its members

xref:System.Drawing.SolidBrush?displayProperty=nameWithType
Describes this class and contains links to all of its members

xref:System.Drawing.TextureBrush?displayProperty=nameWithType
Describes this class and contains links to all of its members.

xref:System.Drawing.Drawing2D.HatchBrush?displayProperty=nameWithType
Describes this class and contains links to all of its members.

xref:System.Drawing.Drawing2D.PathGradientBrush?displayProperty=nameWithType
Describes this class and contains links to all of its members.

Related Sections

Using a Gradient Brush to Fill Shapes
Contains a list of topics that show how to use a gradient brush.

Using a Pen to Draw Lines and Shapes
Provides a list of topics that demonstrate how to draw outlined shapes.

Using Managed Graphics Classes
Contains a list of topics describing how to use managed graphics classes.