WPFPixelShaderLibrary
v1.0.2
| Nuget軟件包
需要.NET框架v.4.6(或更高)或.NET CORE 3.0(或更高)。
請看一下https://github.com/unknown6656-megacorp/unknown6656.cvglpixelshader,以獲取此存儲庫的粗糙python-同等。
只需添加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 >結果:
