728x90
반응형
728x170
■ BlurEffect 클래스를 사용하는 방법을 보여준다.
▶ MainWindow.xaml
<Window x:Class="TestProject.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="800"
Height="600"
Title="BlurEffect 클래스 사용하기">
<Grid>
<Image
Margin="-50"
Source="background.jpg"
Stretch="Fill">
<Image.Effect>
<BlurEffect KernelType="Gaussian" Radius="10" />
</Image.Effect>
</Image>
<Border
Margin="50"
CornerRadius="50"
Background="#7f000000">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="White"
FontSize="20"
FontWeight="Light"
TextAlignment="Center">
<Run Text="Hello World" FontSize="48" />
</TextBlock>
</Border>
</Grid>
</Window>
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] FontDialog 클래스 : WinForm 폰트 대화 상자 사용하기 (0) | 2019.06.28 |
---|---|
[C#/WPF] 듀얼 모니터 보조 화면 창 열기 (0) | 2019.06.28 |
[C#/WPF] Window 클래스 : WindowStyle 속성을 사용해 윈도우 테두리 제거하기 (0) | 2019.06.25 |
[C#/WPF] 반투명 윈도우 사용하기 (0) | 2019.06.24 |
[C#/WPF] 가상 키보드 사용하기 (0) | 2019.06.23 |
[C#/WPF] 커스텀 컨트롤 만들기 (0) | 2019.06.22 |
[C#/WPF] 반투명 윈도우 사용하기 (0) | 2019.06.16 |
[C#/WPF] 실시간 스트리밍 프토로콜(RTSP)을 사용해 동영상 재생하기 (0) | 2019.06.15 |
[C#/WPF] 웹 카메라 사용하기 (0) | 2019.06.14 |
[C#/WPF] 반투명 윈도우 사용하기 (0) | 2019.06.10 |
댓글을 달아 주세요