1. 程式人生 > WINDOWS開發 >WPF為圖片新增倒圓角

WPF為圖片新增倒圓角

//把圖片設定為Border的背景
<Grid Width="973" Height="688"> <Border Name="Image_Game" Width="973" Height="688" BorderBrush="#FF2B9EC5" BorderThickness="4" CornerRadius="10"> <Border.Background> <ImageBrush ImageSource="GameImage/10001.png" /> </Border.Background> </Border> </Grid>