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 | |
---|---|
Enum values
CENTER
public static final Matrix.ScaleToFit CENTER
Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. The result is centered inside dst.
END
public static final Matrix.ScaleToFit END
Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. END aligns the result to the right and bottom edges of dst.
FILL
public static final Matrix.ScaleToFit FILL
Scale in X and Y independently, so that src matches dst exactly. This may change the aspect ratio of the src.
START
public static final Matrix.ScaleToFit START
Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. START aligns the result to the left and top edges of dst.
Public methods
valueOf
public static Matrix.ScaleToFit valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
Matrix.ScaleToFit |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
TMZ Celebrity News – Breaking Stories, Videos & Gossip
Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.
Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.
🎥 Watch TMZ Live
TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.
- Exclusive TMZ interviews and court updates
- Viral celebrity videos and candid photos
- Trending gossip and entertainment news