BlurBitmapEffect.KernelType 속성

정의

참고: 이 API는 이제 사용되지 않습니다. 사용되지 않는 대안은 .입니다 BlurEffect. 에 사용할 BlurBitmapEffect흐림 효과 커널의 형식을 가져오거나 설정합니다.

public:
 property System::Windows::Media::Effects::KernelType KernelType { System::Windows::Media::Effects::KernelType get(); void set(System::Windows::Media::Effects::KernelType value); };
public System.Windows.Media.Effects.KernelType KernelType { get; set; }
member this.KernelType : System.Windows.Media.Effects.KernelType with get, set
Public Property KernelType As KernelType

속성 값

흐림 커널의 형식입니다. 기본값은 Gaussian입니다.

예제

다음 예제에서는 의 지정 KernelType 하는 방법을 보여 있습니다 BlurBitmapEffect.

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

  <StackPanel>
    <Button  Width="200">You Can't Read This!
      <Button.BitmapEffect>

      <!-- <BitmapEffectGroup> would go here if you wanted to apply more 
             then one effect to the Button. However, in this example only  
             one effect is being applied so BitmapEffectGroup does not need  
             to be included. -->

        <!-- The larger the Radius, the more blurring. The default range is 20.
             In addition, the KernelType is set to a box kernel. A box kernel
             creates less disruption (less blur) then the default Gaussian kernel. -->
        <BlurBitmapEffect Radius="10" KernelType="Box" />

      </Button.BitmapEffect>
    </Button>

  </StackPanel>

</Page>

설명

종속성 속성 정보

항목 가치
식별자 필드 KernelTypeProperty
메타데이터 속성이 다음으로 설정됩니다. true None

적용 대상