WPFPixelShaderLibrary
v1.0.2
- แพ็คเกจ Nuget
ต้องการ. NET Framework V.4.6 (หรือสูงกว่า) หรือ. NET Core 3.0 (หรือสูงกว่า)
ดูที่ https://github.com/unknown6656-megacorp/unknown6656.cvglpixelshader สำหรับ python-repo นี้
เพียงเพิ่ม 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 >ผลลัพธ์:
