[][src]Trait iconwriter::Raster

pub trait Raster<E> {
    pub fn raster(&self, opts: &IconOptions) -> Result<Vec<RgbaImage>, E>;
}

Rasterizes a generic image to series of RgbaImage's, conforming to the configuration options specifyed in the options argument.

Required methods

pub fn raster(&self, opts: &IconOptions) -> Result<Vec<RgbaImage>, E>[src]

Rasterizes self to series of RgbaImage's, conforming to the configuration options specifyed in the options argument.

Returns Ok(Vec<RgbaImage>) if the rasterazation was sucessfull. Otherwise returns Err<E>

Loading content...

Implementations on Foreign Types

impl Raster<Error> for SvgImage[src]

impl Raster<Error> for DynamicImage[src]

Loading content...

Implementors

Loading content...