This documentation is archived and is not being maintained.

SamplingMode Enumeration

Updated: July 2008

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
<object property="enumerationMemberName" .../>

Member nameDescription
NearestNeighborUse nearest neighbor sampling.
BilinearUse bilinear sampling.
AutoThe system selects the most appropriate sampling mode.

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.

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 enumeration.

SP1 feature change.