Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft