CapturePhoto class
A container for image data collected by a photo capture output.
When you capture photos with the CapturePhotoOutput class, your delegate object receives each resulting image and related data in the form of an CapturePhoto object. This object is an immutable wrapper from which you can retrieve various results of the photo capture.
In addition to the photo image pixel buffer, an CapturePhoto object can also contain a preview-sized pixel buffer, capture metadata, and, on supported devices, depth data and camera calibration data. From an CapturePhoto object, you can generate data appropriate for writing to a file, such as HEVC encoded image data containerized in the HEIC file format and including a preview image, depth data and other attachments.
An CapturePhoto instance wraps a single image result. For example, if you request a bracketed capture of three images, your callback is called three times, each time delivering a single CapturePhoto object.
- Annotations
-
- @Reference('av_foundation/av_foundation/CapturePhoto')
Constructors
- CapturePhoto(Uint8List? fileDataRepresentation)
- Construct a CapturePhoto.
Properties
- fileDataRepresentation → Uint8List?
-
Generates and returns a flat data representation of the photo and its attachments.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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