public final class DrawableMatrix
extends Matrix
| Modifier and Type | Method and Description |
|---|---|
static DrawableMatrix |
create(Drawable d,
ScaleType scaleType,
int width,
int height)
Create a matrix to be applied to a drawable which scales the drawable according to its scale
type.
|
boolean |
shouldClipRect() |
public boolean shouldClipRect()
public static DrawableMatrix create(Drawable d, ScaleType scaleType, int width, int height)
d - The drawable to create a matrix forscaleType - A scale type describing how to scale the drawable.width - The width of the drawable's container.height - The height of the drawable's container.