[][src]Trait resvg::OutputImage

pub trait OutputImage {
    fn save_png(&mut self, path: &Path) -> bool;
fn make_vec(&mut self) -> Vec<u8>;
fn make_rgba_vec(&mut self) -> Vec<u8>; }

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.

Loading content...

Implementations on Foreign Types

impl OutputImage for ImageSurface[src]

impl OutputImage for Image[src]

impl OutputImage for DrawTarget[src]

Loading content...

Implementors

Loading content...