[−][src]Trait resvg::OutputImage
A generic interface for output image.
Required methods
fn save_png(&mut self, path: &Path) -> bool
Saves rendered image to the selected path.
fn make_vec(&mut self) -> Vec<u8>
Converts an image's internal data into a Vec<u8>
.
Channels order and alpha multiplication will be different for each backend.
fn make_rgba_vec(&mut self) -> Vec<u8>
Converts an image's internal data into a Vec<u8>
.
Image will be converted into an unmultiplied RGBA array.