728x90
728x170

이미지를 특정 모양 부분만 보이도록 하는 방법입니다.

Clip 에 패스미니언어를 이용하면됩니다.

 

<Window x:Class="WpfApp3.MainWindow"

        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

        mc:Ignorable="d"

        Title="MainWindow" Height="450" Width="600">

    <Image

         Clip="M 220 170 L 170 390 L 370 390 L 320 170 A 70 70 0 1 0 220 170"

         Stretch="None"

         Source="http://img2.yna.co.kr/etc/inner/KR/2019/09/09/AKR20190909107200009_04_i_P4.jpg" />

</Window>

 

 

728x90
그리드형
Posted by kjun
,