# GeometryGroup and DrawingImage : Geometry « Windows Presentation Foundation « VB.Net

GeometryGroup and DrawingImage

```

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Title="">
<Canvas>
<Image xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<GeometryDrawing Brush="Orange">
<GeometryDrawing.Pen>
<Pen Brush="Black" Thickness="10"/>
</GeometryDrawing.Pen>
<GeometryDrawing.Geometry>
<GeometryGroup>
<PathGeometry>
<PathGeometry.Transform>
<RotateTransform Angle="25"/>
</PathGeometry.Transform>
<PathFigure IsClosed="True">
<LineSegment Point="0,100" IsSmoothJoin="True"/>
<LineSegment Point="100,100" IsSmoothJoin="True"/>
</PathFigure>
</PathGeometry>
</GeometryGroup>
</GeometryDrawing.Geometry>
</GeometryDrawing>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
</Canvas>
</Window>

```

### Related examples in the same category

 1 GeometryCombineMode = Union 2 GeometryCombineMode = Intersect 3 GeometryCombineMode = Xor 4 GeometryCombineMode = Exclude 5 Combine two circles into one shape using CombinedGeometry: Union 6 Combine two circles into one shape using CombinedGeometry: Xor 7 Combine two circles into one shape using CombinedGeometry: Intersect 8 Combine two circles into one shape using CombinedGeometry: Exclude 9 Combine Geometry 10 LineGeometry for Path 11 EllipseGeometry for Path 12 BezierSegment for a Path 13 Put EllipseGeometry to GeometryGroup 14 Put RectangleGeometry to GeometryGroup 15 Path based on GeometryGroup Resource 16 GeometryDrawing.Brush 17 GeometryDrawing.Pen 18 GeometryDrawing with 2 PathFigures 19 GeometryDrawing insize a DrawingGroup 20 Use the StreamGeometry mini-language to create polyline 21 Create a PathGeometry using the PathFigureCollection mini-language. 22 PolyLineSegment creates a series of straight lines. 23 LineGeometry vs Line 24 RectangleGeometry vs Rectangle 25 EllipseGeometry vs Ellipse 26 Combine geometries is to use the GeometryGroup object 27 Geometry Group 28 GeometryDrawing Pen and Geometry 29 CombinedGeometry GeometryCombineMode="Union" 30 Reusing Geometry 31 Converting text to geometry 32 Use a PathGeometry object to highlight displayed text.