Export (0) Print
Expand All

SamplingMode Enumeration

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)

public enum SamplingMode

Member nameDescription
Supported by Silverlight for Windows PhoneAutoThe system selects the most appropriate sampling mode.
Supported by Silverlight for Windows PhoneNearestNeighborUse nearest neighbor sampling.
Supported by Silverlight for Windows PhoneBilinearUse bilinear 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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

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

Community Additions

ADD
Show:
© 2014 Microsoft