UNPKG

expo-camera

Version:

A React component that renders a preview for the device's either front or back camera. Camera's parameters like zoom, auto focus, white balance and flash mode are adjustable. With expo-camera, one can also take photos and record videos that are saved to t

9 lines (8 loc) 971 B
import { PictureOptions } from './../Camera.types'; import { CameraType, ImageSize, ImageType } from './CameraModule.types'; export declare function getImageSize(videoWidth: number, videoHeight: number, scale: number): ImageSize; export declare function toDataURL(canvas: HTMLCanvasElement, imageType: ImageType, quality: number): string; export declare function hasValidConstraints(preferredCameraType?: CameraType, width?: number | ConstrainLongRange, height?: number | ConstrainLongRange): boolean; export declare function captureImage(video: HTMLVideoElement, pictureOptions: PictureOptions): string; export declare function getIdealConstraints(preferredCameraType: CameraType, width?: number | ConstrainLongRange, height?: number | ConstrainLongRange): MediaStreamConstraints; export declare function getStreamDevice(preferredCameraType: CameraType, preferredWidth?: number | ConstrainLongRange, preferredHeight?: number | ConstrainLongRange): Promise<MediaStream>;