WPFPixelShaderLibrary
v1.0.2
|ヌゲットパッケージ
.NETフレームワークv.4.6(またはそれ以上)または.NETコア3.0(またはそれ以上)が必要です。
https://github.com/unking6656-megacorp/unknown6656.cvglpixelshaderをご覧ください。
xmlns:fx="https://unknown6656.com/wpfpslib"をxamlネームスペース定義に追加するだけで、効果を使用します。
< Window x : Class = " MyTestApp.MainWindow "
xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation "
xmlns : x = " http://schemas.microsoft.com/winfx/2006/xaml "
xmlns : d = " http://schemas.microsoft.com/expression/blend/2008 "
xmlns : fx = " https://unknown6656.com/wpfpslib "
...
/>
< Grid >
< Button Width = " 100 " Height = " 25 " >
< Button .Effect>
< fx : PixelationEffect Count = " 40,20 " />
</ Button .Effect>
PRESS ME !
</ Button >
</ Grid >
</ Window >結果:
