public enum ScaleType
- Object
- Enum<ScaleType>
- ScaleType
ImplementsComparable<ScaleType>
How the live preview from a
CameraView is fitted inside its component bounds.Enum constants
FIT | Scale uniformly so the entire preview is visible, letterboxing if needed. |
FILL | Scale non-uniformly to fill the bounds (preview may be stretched). |
CROP | Scale uniformly to fill the bounds, cropping the edges as needed. |
Methods
public static ScaleType[] values() | |
public static ScaleType valueOf(String name) |
Inherited methods
Enum constant details
FIT
FITScale uniformly so the entire preview is visible, letterboxing if needed.
FILL
FILLScale non-uniformly to fill the bounds (preview may be stretched).
CROP
CROPScale uniformly to fill the bounds, cropping the edges as needed.
This is what most camera apps do.
Method details
values
public static ScaleType[] values()valueOf
public static ScaleType valueOf(String name)