Condividi tramite


BitmapShader.FilterModeNearest Field

Definition

Caution

This constant will be removed in the future version. Use Android.Graphics.BitmapShaderFilterMode enum directly instead of this field.

This FilterMode value will cause the shader to sample from the nearest pixel to the requested sample point.

[Android.Runtime.Register("FILTER_MODE_NEAREST", ApiSince=33)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.BitmapShaderFilterMode enum directly instead of this field.", true)]
public const Android.Graphics.BitmapShaderFilterMode FilterModeNearest = 1;
[<Android.Runtime.Register("FILTER_MODE_NEAREST", ApiSince=33)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.BitmapShaderFilterMode enum directly instead of this field.", true)>]
val mutable FilterModeNearest : Android.Graphics.BitmapShaderFilterMode

Field Value

Value = 1
Attributes

Remarks

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.

Java documentation for android.graphics.BitmapShader.FILTER_MODE_NEAREST.

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.

Applies to