vizia::vg::encode

Function image

pub fn image<'a>(
    context: impl Into<Option<&'a mut RCHandle<GrDirectContext>>>,
    image: &RCHandle<SkImage>,
    image_format: SkEncodedImageFormat,
    quality: impl Into<Option<u32>>,
) -> Option<RCHandle<SkData>>