CameraImage.fromPlatformInterface constructor
CameraImage.fromPlatformInterface(
- CameraImageData data
Creates a CameraImage from the platform interface version.
Implementation
CameraImage.fromPlatformInterface(CameraImageData data)
: format = ImageFormat._fromPlatformInterface(data.format),
height = data.height,
width = data.width,
planes = List<Plane>.unmodifiable(data.planes.map<Plane>(
(CameraImagePlane plane) => Plane._fromPlatformInterface(plane))),
lensAperture = data.lensAperture,
sensorExposureTime = data.sensorExposureTime,
sensorSensitivity = data.sensorSensitivity;