SamplingMode Enumeration
Indicates the way Brush-valued dependency properties are sampled in a custom shader effect.
Assembly: PresentationCore (in PresentationCore.dll)
| Member name | Description | |
|---|---|---|
| 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.
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0