BitmapShader.MaxAnisotropy Property

Definition

Returns the current max anisotropic filtering value configured by #setFilterMode(int). -or- Enables and configures the max anisotropy sampling value.

public virtual int MaxAnisotropy { [Android.Runtime.Register("getMaxAnisotropy", "()I", "GetGetMaxAnisotropyHandler", ApiSince=34)] get; [Android.Runtime.Register("setMaxAnisotropy", "(I)V", "GetSetMaxAnisotropy_IHandler", ApiSince=34)] set; }
[<get: Android.Runtime.Register("getMaxAnisotropy", "()I", "GetGetMaxAnisotropyHandler", ApiSince=34)>]
[<set: Android.Runtime.Register("setMaxAnisotropy", "(I)V", "GetSetMaxAnisotropy_IHandler", ApiSince=34)>]
member this.MaxAnisotropy : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the current max anisotropic filtering value configured by #setFilterMode(int). If #setFilterMode(int) is invoked this returns zero.

Java documentation for android.graphics.BitmapShader.getMaxAnisotropy().

Property setter documentation:

Enables and configures the max anisotropy sampling value. If this value is configured, #setFilterMode(int) is ignored.

Anisotropic filtering can enhance visual quality by removing aliasing effects of images that are at oblique viewing angles. This value is typically consumed as a power of 2 and anisotropic values of the next power of 2 typically provide twice the quality improvement as the previous value. For example, a sampling value of 4 would provide twice the improvement of a sampling value of 2. It is important to note that higher sampling values reach diminishing returns as the improvements between 8 and 16 can be slight.

Java documentation for android.graphics.BitmapShader.setMaxAnisotropy(int).

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