<?xml version="1.0"?>
<page id="GimpUi.ZoomPreview.new_with_model_from_drawable"
      type="topic"
      style="constructor"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="GimpUi.ZoomPreview" group="constructor" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.Widget</api:type>
      </api:returns>
      <api:name>gimp_zoom_preview_new_with_model_from_drawable</api:name>
      <api:arg>
        <api:type>Gimp.Drawable</api:type>
        <api:name>drawable</api:name>
      </api:arg>
      <api:arg>
        <api:type>GimpUi.ZoomModel</api:type>
        <api:name>model</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.ZoomPreview.new_with_model_from_drawable</title>
  <synopsis><code mime="text/x-gjs">
function new_with_model_from_drawable(drawable: <link href="../Gimp-3.0/Gimp.Drawable.html">Gimp.Drawable</link>, model: <link xref="GimpUi.ZoomModel">GimpUi.ZoomModel</link>): <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> {
    // Gjs wrapper for gimp_zoom_preview_new_with_model_from_drawable()
}
  </code></synopsis>
  <p>Creates a new <link xref="GimpUi.ZoomPreview"/> widget for <code>drawable</code> using the
given <code>model</code>.</p>  <p>This variant of <link xref="GimpUi.ZoomPreview.new_from_drawable"/> allows you
to create a preview using an existing zoom model. This may be
useful if for example you want to have two zoom previews that keep
their zoom factor in sync.</p>
  <p>Since 2.10</p>
<terms>
<item>
<title><code>drawable</code></title>
  <p>a <link href="../Gimp-3.0/Gimp.Drawable.html">Gimp.Drawable</link></p>
</item>
<item>
<title><code>model</code></title>
  <p>a <link xref="GimpUi.ZoomModel"/></p>
</item>
<item>
<title><code>Returns</code></title>
  <p>a new <link xref="GimpUi.ZoomPreview"/>.</p>
</item>
</terms>

</page>
