SamplingMode 枚举

定义

指示在自定义着色器效果中对 Brush 值的依赖项属性进行取样的方式。Indicates the way Brush-valued dependency properties are sampled in a custom shader effect.

public enum class SamplingMode
public enum SamplingMode
type SamplingMode = 
Public Enum SamplingMode
继承
SamplingMode

字段

Auto 2

系统选择最适合的取样模式。The system selects the most appropriate sampling mode.

Bilinear 1

使用双线性取样。Use bilinear sampling.

NearestNeighbor 0

使用最近邻域取样。Use nearest neighbor sampling.

注解

为定义SamplingMode依赖项属性时, 请设置。 ShaderEffectSet 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.

适用于

另请参阅