PreviewResizeMode

type PreviewResizeMode = "cover" | "contain"

Represents the resize mode for the PreviewView.

  • 'cover': Upscales the PreviewView to cover up the entire view and leave no blank space, possibly performing a center-crop transform to make up for aspect ratio differences.
  • 'contain': Centers the PreviewView inside the view, possibly leaving blank space around the top/bottom, or left/right edges to make up for aspect ratio differences.