<?xml version="1.0"?>
<page id="Gimp.Vectors.import_from_file"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.Vectors" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Boolean</api:type>
      </api:returns>
      <api:name>gimp_vectors_import_from_file</api:name>
      <api:arg>
        <api:type>Gimp.Image</api:type>
        <api:name>image</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gio.File</api:type>
        <api:name>file</api:name>
      </api:arg>
      <api:arg>
        <api:type>Boolean</api:type>
        <api:name>merge</api:name>
      </api:arg>
      <api:arg>
        <api:type>Boolean</api:type>
        <api:name>scale</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Vectors.import_from_file</title>
  <synopsis><code mime="text/x-gjs">
function import_from_file(image: <link xref="Gimp.Image">Gimp.Image</link>, file: <link href="../Gio-2.0/Gio.File.html">Gio.File</link>, merge: Boolean, scale: Boolean): [ok: Boolean, vectors: Array(<link xref="Gimp.Vectors">Gimp.Vectors</link>)] {
    // Gjs wrapper for gimp_vectors_import_from_file()
}
  </code></synopsis>
  <p>Import paths from an SVG file.</p>  <p>This procedure imports paths from an SVG file. SVG elements other
than paths and basic shapes are ignored.</p>
  <p>Since 2.4</p>
<terms>
<item>
<title><code>image</code></title>
  <p>The image.</p>
</item>
<item>
<title><code>file</code></title>
  <p>The SVG file to import.</p>
</item>
<item>
<title><code>merge</code></title>
  <p>Merge paths into a single vectors object.</p>
</item>
<item>
<title><code>scale</code></title>
  <p>Scale the SVG to image dimensions.</p>
</item>
<item>
<title><code>ok</code></title>
  <p>TRUE on success.</p>
</item>
<item>
<title><code>vectors</code></title>
  <p>The list of newly created vectors.</p>
</item>
</terms>

</page>
