Function convert_image::frame_to_image
source · pub fn frame_to_image<FMT>(
frame: &dyn ImageStride<FMT>,
opts: ImageOptions
) -> Result<Vec<u8>, Error>where
FMT: PixelFormat,
Expand description
Convert any type implementing ImageStride<FMT>
to a Jpeg or Png buffer.