public enum ScaleType

  1. Object
  2. Enum<ScaleType>
  3. ScaleType

ImplementsComparable<ScaleType>

How the live preview from a CameraView is fitted inside its component bounds.

Enum constants

FITScale uniformly so the entire preview is visible, letterboxing if needed.
FILLScale non-uniformly to fill the bounds (preview may be stretched).
CROPScale 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

FIT
Scale uniformly so the entire preview is visible, letterboxing if needed.

FILL

FILL
Scale non-uniformly to fill the bounds (preview may be stretched).

CROP

CROP
Scale 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)