CaptureImage.fromBuffer Method¶
Module: CaptureImage
Definition¶
Creates an Image from the specified data buffer.
static CaptureImage fromBuffer(Uint8List? data, PixelFormat pixelFormat)
Parameters
data Uint8Listin A buffer that contains the image data.
pixelFormat PixelFormatin The destination pixel format to convert the input to.
Returns
The newly created capture image.
Exceptions
An error has occurred during Devices Library execution.