<Grid x:Name="LayoutRoot" Background="Gray" Width="205" Height="205">
<Image x:Name="img_TL" Stretch="None" Source="Orz.png">
<Image.RenderTransform>
<TranslateTransform X="-2.5" Y="-2.5"/>
</Image.RenderTransform>
<Image.Clip>
<RectangleGeometry Rect="0,0,100,100" />
</Image.Clip>
</Image>
<Image x:Name="img_TR" Stretch="None" Source="Orz.png">
<Image.RenderTransform>
<TranslateTransform X="2.5" Y="-2.5"/>
</Image.RenderTransform>
<Image.Clip>
<RectangleGeometry Rect="100,0,100,100" />
</Image.Clip>
</Image>
<Image x:Name="img_BL" Stretch="None" Source="Orz.png" >
<Image.RenderTransform>
<TranslateTransform X="2.5" Y="2.5"/>
</Image.RenderTransform>
<Image.Clip>
<RectangleGeometry Rect="100,100,100,100" />
</Image.Clip>
</Image>
<Image x:Name="img_BR" Stretch="None" Source="Orz.png" >
<Image.RenderTransform>
<TranslateTransform X="-2.5" Y="2.5"/>
</Image.RenderTransform>
<Image.Clip>
<RectangleGeometry Rect="0,100,100,100" />
</Image.Clip>
/Image>
</Grid>
執行結果
其中
沒有留言:
張貼留言