# ScaledDrawableWrapper

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/drawable/ScaledDrawableWrapper.java)

*** ** * ** ***


```
public class ScaledDrawableWrapper
```

<br />

*** ** * ** ***

An extension of DrawableWrapperCompat that will take a given Drawable and scale it by the specified width and height.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/drawable/ScaledDrawableWrapper#ScaledDrawableWrapper(Drawable,int,int)(Drawable drawable, int width, int height)` |

| ### Public methods |
|---|---|
| `ConstantState` | `https://developer.android.com/reference/com/google/android/material/drawable/ScaledDrawableWrapper#getConstantState()()` |
| `int` | `https://developer.android.com/reference/com/google/android/material/drawable/ScaledDrawableWrapper#getIntrinsicHeight()()` |
| `int` | `https://developer.android.com/reference/com/google/android/material/drawable/ScaledDrawableWrapper#getIntrinsicWidth()()` |
| `Drawable` | `https://developer.android.com/reference/com/google/android/material/drawable/ScaledDrawableWrapper#mutate()()` |
| `void` | `https://developer.android.com/reference/com/google/android/material/drawable/ScaledDrawableWrapper#setDrawable(Drawable)(Drawable drawable)` |

## Public constructors

### ScaledDrawableWrapper

```
public ScaledDrawableWrapper(Drawable drawable, int width, int height)
```

## Public methods

### getConstantState

```
public ConstantState getConstantState()
```

### getIntrinsicHeight

```
public int getIntrinsicHeight()
```

### getIntrinsicWidth

```
public int getIntrinsicWidth()
```

### mutate

```
public Drawable mutate()
```

### setDrawable

```
public void setDrawable(Drawable drawable)
```