<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF" Height="300" Width="450">
<Canvas>
<Canvas.Resources>
<GeometryGroup x:Key="Clown" FillRule="Nonzero">
<RectangleGeometry Rect="30,120 20,10"/>
</GeometryGroup>
</Canvas.Resources>
<Path Canvas.Left="20" Canvas.Top="110" Data="{StaticResource Clown}" RenderTransformOrigin="0.5,0.5" Stroke="Black" StrokeThickness="4">
<Path.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX=".8" ScaleY=".8" />
<RotateTransform Angle="50" CenterX="40" CenterY="40" />
<TranslateTransform X="80" Y="20" />
</TransformGroup>
</Path.RenderTransform>
</Path>
</Canvas>
</Window>
|