SamplingMode Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Indicates the way Brush-valued dependency properties are sampled in a custom shader effect.

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

public enum SamplingMode

Member nameDescription
Auto

The system selects the most appropriate sampling mode.

Bilinear

Use bilinear sampling.

NearestNeighbor

Use nearest neighbor sampling.

Set the SamplingMode when you define a dependency property for a ShaderEffect.

The rendering system automatically selects the appropriate sampling mode, depending on whether hardware or software rendering is enabled, whether the destination texture is rotated, and other factors.

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: