CameraImage class

A single complete image buffer from the platform camera.

This class allows for direct application access to the pixel data of an Image through one or more Uint8List. Each buffer is encapsulated in a Plane that describes the layout of the pixel data in that plane. The CameraImage is not directly usable as a UI resource.

Although not all image formats are planar on iOS, we treat 1-dimensional images as single planar images.

Constructors

CameraImage.fromPlatformData(Map data)
Creates a CameraImage from method channel data.
CameraImage.fromPlatformInterface(CameraImageData data)
Creates a CameraImage from the platform interface version.

Properties

format ImageFormat
Format of the image provided.
final
hashCode int
The hash code for this object.
no setterinherited
height int
Height of the image in pixels.
final
lensAperture double?
The aperture settings for this image.
final
planes List<Plane>
The pixels planes for this image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensorExposureTime int?
The sensor exposure time for this image in nanoseconds.
final
sensorSensitivity double?
The sensor sensitivity in standard ISO arithmetic units.
final
width int
Width of the image in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited