SamplingMode Enumeration

SamplingMode Enumeration


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

The system selects the most appropriate sampling mode.


Use bilinear sampling.


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
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2016 Microsoft