This documentation is archived and is not being maintained.

PixelShader Class

Updated: July 2008

Provides a managed wrapper around a High Level Shading Language (HLSL) pixel shader.

Namespace:  System.Windows.Media.Effects
Assembly:  PresentationCore (in PresentationCore.dll)

public ref class PixelShader sealed : public Animatable
<PixelShader .../>

Use the PixelShader class to access pre-compiled HLSL bytecode in a Windows Presentation Foundation (WPF) application. You can create a PixelShader from a Pack URI reference or from a Stream.

Set the UriSource property or call the SetStreamSource method to load the shader bytecode.

To create a custom effect, assign the PixelShader to the PixelShader property of a ShaderEffect.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1, 3.0 SP2




July 2008

Added topic for new class.

SP1 feature change.