Composite Drawing App

-->

This example shows how to use a DrawingGroup to create complex drawings by combining multiple Drawing objects into a single composite drawing.

Example

The following example uses a DrawingGroup to create a composite drawing from the GeometryDrawing and ImageDrawing objects. The following illustration shows the output that this example produces.


A composite drawing that is created by using DrawingGroup

Note the gray border, which shows the bounds of the drawing.

You can use a DrawingGroup to apply a Transform, Opacity setting, OpacityMask, BitmapEffect, ClipGeometry, or GuidelineSet to the drawings it contains. Because a DrawingGroup is also a Drawing, it can contain other DrawingGroup objects.

The following example is similar to the preceding example, except that it uses additional DrawingGroup objects to apply bitmap effects and an opacity mask to some of its drawings. The following illustration shows the output that this example produces.


Composite drawing that has multiple DrawingGroup objects

Note the gray border, which shows the bounds of the drawing.

For more information about Drawing objects, see Drawing Objects Overview.

See also

Comments are closed.