Android Reference
Matrix.ScaleToFit
android.graphics
Enum Matrix.ScaleToFit
-
-
Enum Constant Summary
Enum Constants
Enum Constant and Description |
CENTER
Compute a scale that will maintain the original src aspect ratio,
but will also ensure that src fits entirely inside dst.
|
END
Compute a scale that will maintain the original src aspect ratio,
but will also ensure that src fits entirely inside dst.
|
FILL
Scale in X and Y independently, so that src matches dst exactly.
|
START
Compute a scale that will maintain the original src aspect ratio,
but will also ensure that src fits entirely inside dst.
|
-
Method Summary
Methods
Modifier and Type |
Method and Description |
static Matrix.ScaleToFit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Matrix.ScaleToFit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, getSharedConstants, hashCode, name, ordinal, toString, valueOf
-
-
Enum Constant Detail
-
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.
-
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.
-
Method Detail
-
valueOf
public static Matrix.ScaleToFit valueOf(String name)
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 846 / 158781885. Delta: 0.02496 с