CaptureImage.fromRawBuffer Method¶
Module: CaptureImage
Definition¶
Creates an Image from the specified raw data buffer.
static CaptureImage fromRawBuffer(Uint8List? pixels, int width, int height, int stride, PixelFormat srcPixelFormat, PixelFormat dstPixelFormat)
Parameters
pixels Uint8Listin A buffer that contains image pixels.
width intin The width, in pixels, of the image.
height intin The height, in pixels, of the image.
stride intin The stride, in pixels, of the image.
srcPixelFormat PixelFormatin The pixel format of the input image.
dstPixelFormat PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created capture image.
Exceptions
An error has occurred during Devices Library execution.