pub fn capture_frame(
pixels: &[u8],
width: u32,
height: u32,
format: PixelFormat,
opaque: bool,
turn: Turn,
cover: (u32, u32),
) -> Option<CaptureFrame>Expand description
The frame a view keeps of a width by height buffer of premultiplied
pixels in format, which the compositor turned. With opaque, as in
XRGB8888 and XBGR8888, the fourth byte is ignored. The frame is
turned back upright and scaled down to frame_size for cover.
None if pixels doesn’t hold width * height pixels.