Skip to main content

as_png

Function as_png 

Source
pub fn as_png(bytes: &[u8]) -> Result<Vec<u8>, String>
Expand description

The picture bytes are, as a PNG, which is what a picture on a clipboard is taken as everywhere: itself, if it is one already; otherwise decoded, turned the way up it says it is, and encoded. An animated picture is its first frame.