[−][src]Function nsvg::parse_file
pub fn parse_file(
filename: &Path,
units: Units,
dpi: f32
) -> Result<SvgImage, Error>
Loads SVG data from a file at the given Path
.
Arguments
svg_path
- Path to the SVG you want to loadunits
- The length unit identifier, you probably just wantnsvg::Units::Pixel
dpi
- Probably just want96.0
.