BitmapShaderFilterMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public enum BitmapShaderFilterMode
type BitmapShaderFilterMode =
- Inheritance
-
BitmapShaderFilterMode
Fields
| Name | Value | Description |
|---|---|---|
| Default | 0 | This FilterMode value will respect the value of the Paint#isFilterBitmap flag while the shader is attached to the Paint. The exception to this rule is when a Shader is attached as input to a RuntimeShader. In that case this mode will default to FILTER_MODE_NEAREST. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Nearest | 1 | This FilterMode value will cause the shader to sample from the nearest pixel to the requested sample point. This value will override the effect of Paint#isFilterBitmap. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Linear | 2 | This FilterMode value will cause the shader to interpolate the output of the shader from a 2x2 grid of pixels nearest to the sample point (i.e. bilinear interpolation). This value will override the effect of Paint#isFilterBitmap. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |