Condividi tramite


ShapeDrawable.ShaderFactory.Resize(Int32, Int32) Method

Definition

Returns the Shader to be drawn when a Drawable is drawn.

[Android.Runtime.Register("resize", "(II)Landroid/graphics/Shader;", "GetResize_IIHandler")]
public abstract Android.Graphics.Shader? Resize (int width, int height);
[<Android.Runtime.Register("resize", "(II)Landroid/graphics/Shader;", "GetResize_IIHandler")>]
abstract member Resize : int * int -> Android.Graphics.Shader

Parameters

width
Int32

the width of the Drawable being drawn

height
Int32

the heigh of the Drawable being drawn

Returns

the Shader to be drawn

Attributes

Remarks

Returns the Shader to be drawn when a Drawable is drawn. The dimensions of the Drawable are passed because they may be needed to adjust how the Shader is configured for drawing. This is called by ShapeDrawable.setShape().

Java documentation for android.graphics.drawable.ShapeDrawable.ShaderFactory.resize(int, 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