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
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:
© 2016 Microsoft