[][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 load
  • units - The length unit identifier, you probably just want nsvg::Units::Pixel
  • dpi - Probably just want 96.0.