Поделиться через


SamplingMode Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies how dependency properties with Brush values are sampled in a custom shader effect.

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

Syntax

'Declaration
Public Enumeration SamplingMode
public enum SamplingMode

Members

Member name Description
Supported by Silverlight for Windows Phone Auto The system selects the most appropriate sampling mode.
Supported by Silverlight for Windows Phone NearestNeighbor Use nearest neighbor sampling.
Supported by Silverlight for Windows Phone Bilinear Use bilinear sampling.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.