1. 程式人生 > >WPF Clip屬性

WPF Clip屬性

原文:https://blog.csdn.net/feitiankoulan/article/details/25199639 

WPF  中FrameworkElement物件有一屬性Clip,定義為區域剪裁,在未給定Clip屬性值前,程式碼如:

        <Image Name="image1" Source="/百葉窗;component/Images/圖片%20%282%29.jpg" Height="311" HorizontalAlignment="Left" Stretch="Fill" VerticalAlignment="Top" Width="422">
        </Image>

效果:如

定以後:如: