WPF › Shaders Library
Shaders Library
.NET Framework 4.8.NET 6 / 8 / 10WPF
Binarymission's custom Shaders library used in Binarymission Controls for WPF
20public types
133public members
1namespaces
Assembly
| Assembly | Binarymission.WPF.Shaders.Library.dll |
| Root namespace | Binarymission.WPF.Shaders.Library |
| Target frameworks | .NET Framework 4.8, .NET 6 / 8 / 10 |
Getting started
<Window x:Class="MyApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:bm="clr-namespace:Binarymission.WPF.Shaders.Library;assembly=Binarymission.WPF.Shaders.Library">
<bm:BulgeEffect />
</Window>
API reference
Binarymission.WPF.Shaders.Library.CustomEffects
class BandsEffect | A pixel shader effect that lays horizontal bands over its input. The density and strength of the banding are settable. |
class BulgeEffect | A pixel shader effect that pushes its input outwards inside a circular lens, or pulls it inwards when Amount is negative - a magnifying glass one way, a pinch the other. |
class ChromaticSplitEffect | A pixel shader effect that separates the red and blue channels of its input radially, leaving green in place - the colour fringing a cheap lens leaves at the corners of a photograph. |
class ColorBlendEffect | A simple color blending shader for WPF. |
class ColorToBlackAndWhiteEffect | A pixel shader effect that drains color from its input. The desaturation factor controls how far towards grayscale it goes. |
class DuotoneEffect | A pixel shader effect that maps the brightness of its input onto a two-colour ramp - the darkest pixels become ShadowColor, the brightest HighlightColor, and everything else a blend of the two. |
class FrostedGlassEffect | A pixel shader effect that scatters each pixel of its input by a small pseudo-random amount, which reads as frosted or etched glass laid over it. |
class GlowingEdgesEffect | A pixel shader effect that finds the edges in its input and draws them back as a coloured glow over a darkened copy of the original. |
class HexPixellateEffect | A pixel shader effect that quantises its input to a hexagonal grid rather than the square one PixellatingEffect uses. |
class HueRotateEffect | A pixel shader effect that turns every colour in its input around the colour wheel while leaving its brightness where it was. |
class KaleidoscopeEffect | A pixel shader effect that folds its input into mirrored wedges around a centre point, the way a kaleidoscope folds whatever it is pointed at. |
class NegativeToPositiveEffect | A pixel shader effect that inverts its input, turning a negative image into a positive one. |
class PixellatingEffect | A simple pixellating shader for WPF. |
class PositiveEffect | A pixel shader effect that tints its input with a settable color filter. With the default filter, white, the image is shown unchanged. |
class RadialBlurEffect | A pixel shader effect that smears its input along the line from each pixel towards a centre point - the streak a camera leaves when it zooms during the exposure. |
class RainFloorEffect | A pixel shader effect that puts a rain-on-a-wet-floor distortion over its input. The activity factor drives it, so animating that property animates the rain. |
class TwirlEffect | A pixel shader effect that twists its input around its center. The radius sets how much of the image is caught up in the twist and the angle sets how far it turns. |
class VignetteEffect | A pixel shader effect that darkens its input towards the corners, the way a lens falls off at the edge of its coverage. |
class WaterRippleEffect | A pixel shader effect that ripples its input outwards from a settable center point. |
class WaterWaveEffect | A pixel shader effect that rolls a wave across its input and tints it. The wave factor drives the motion, so animating it animates the wave. |