DocumentImage.fromYuvPlanes Method¶
Module: DocumentImage
Definition¶
Creates an Image from the specified YUV planes.
static DocumentImage fromYuvPlanes(Uint8List? yPlane, Uint8List? uPlane, Uint8List? vPlane, int yWidth, int yHeight, int uvPixelStride, int uvRowStride, PixelFormat dstPixelFormat)
Parameters
yPlane Uint8Listin A buffer that contains the Y plane.
uPlane Uint8Listin A buffer that contains the U plane.
vPlane Uint8Listin A buffer that contains the V plane.
yWidth intin The width, in pixels, of the Y plane.
yHeight intin The height, in pixels, of the Y plane.
uvPixelStride intin The pixel-level stride, in pixels, of the U and V planes.
uvRowStride intin The row-level stride, in pixels, of the U and V planes.
dstPixelFormat PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created document image.
Exceptions
An error has occurred during Document Library execution.