Skip to main content

encode_capture

Function encode_capture 

Source
pub fn encode_capture(
    image: &ColorImage,
    ppp: f32,
    view: Option<Rect>,
    region: &Region,
) -> Result<(Value, Vec<u8>), String>
Expand description

Encode a captured frame (cropped to region) as PNG.