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. Its
logical size is the source’s upright size in pixels, for the platform
to replace with the source’s logical one. None if pixels doesn’t
hold width * height pixels.