CameraImageData 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 CameraImagePlane that describes the layout of the pixel data in that plane. CameraImageData is not directly usable as a UI resource.

Although not all image formats are planar on all platforms, this class treats 1-dimensional images as single planar images.

Annotations

Constructors

CameraImageData({required CameraImageFormat format, required List<CameraImagePlane> planes, required int height, required int width, double? lensAperture, int? sensorExposureTime, double? sensorSensitivity})
Creates a new instance with the given format, planes, and metadata.
const

Properties

format CameraImageFormat
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<CameraImagePlane>
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