Added in API level 1
Matrix.ScaleToFit
public
static
final
enum
Matrix.ScaleToFit
extends Enum<Matrix.ScaleToFit>
| java.lang.Object | ||
| ↳ | java.lang.Enum<android.graphics.Matrix.ScaleToFit> | |
| ↳ | android.graphics.Matrix.ScaleToFit | |
Controls how the src rect should align into the dst rect for setRectToRect().
Summary
Enum values | |
|---|---|
Matrix.ScaleToFit |
CENTER
Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. |
Matrix.ScaleToFit |
END
Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. |
Matrix.ScaleToFit |
FILL
Scale in X and Y independently, so that src matches dst exactly. |
Matrix.ScaleToFit |
START
Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. |
Public methods | |
|---|---|
static
Matrix.ScaleToFit
|
valueOf(String name)
|
static
final
ScaleToFit[]
|
values()
|
Inherited methods | |
|---|---|