[−][src]Function nsvg::parse_str
pub fn parse_str(
svg_str: &str,
units: Units,
dpi: f32
) -> Result<SvgImage, Error>
Loads SVG data from the given SVG text contents.
Arguments
svg_str
- Text contents of the SVG you want to loadunits
- The length unit identifier, you probably just wantnsvg::Units::Pixel
dpi
- Probably just want96.0
.