~nik90/ubuntu/precise/eog/keywords

« back to all changes in this revision

Viewing changes to doc/reference/html/eog-zoom.html

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-07-26 15:28:21 UTC
  • mto: This revision was merged to the branch mainline in revision 116.
  • Revision ID: james.westby@ubuntu.com-20110726152821-g806mbptn727m1a5
Tags: upstream-3.1.4
ImportĀ upstreamĀ versionĀ 3.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
</tr></table></div>
38
38
<div class="refsynopsisdiv">
39
39
<a name="eog-zoom.synopsis"></a><h2>Synopsis</h2>
40
 
<pre class="synopsis"><span class="returnvalue">void</span>                <a class="link" href="eog-zoom.html#zoom-fit-size" title="zoom_fit_size ()">zoom_fit_size</a>                       (<em class="parameter"><code><span class="type">guint</span> dest_width</code></em>,
41
 
                                                         <em class="parameter"><code><span class="type">guint</span> dest_height</code></em>,
42
 
                                                         <em class="parameter"><code><span class="type">guint</span> src_width</code></em>,
43
 
                                                         <em class="parameter"><code><span class="type">guint</span> src_height</code></em>,
44
 
                                                         <em class="parameter"><code><span class="type">gboolean</span> upscale_smaller</code></em>,
45
 
                                                         <em class="parameter"><code><span class="type">guint</span> *width</code></em>,
46
 
                                                         <em class="parameter"><code><span class="type">guint</span> *height</code></em>);
47
 
<span class="returnvalue">double</span>              <a class="link" href="eog-zoom.html#zoom-fit-scale" title="zoom_fit_scale ()">zoom_fit_scale</a>                      (<em class="parameter"><code><span class="type">guint</span> dest_width</code></em>,
48
 
                                                         <em class="parameter"><code><span class="type">guint</span> dest_height</code></em>,
49
 
                                                         <em class="parameter"><code><span class="type">guint</span> src_width</code></em>,
50
 
                                                         <em class="parameter"><code><span class="type">guint</span> src_height</code></em>,
51
 
                                                         <em class="parameter"><code><span class="type">gboolean</span> upscale_smaller</code></em>);
 
40
<pre class="synopsis"><span class="returnvalue">void</span>                <a class="link" href="eog-zoom.html#zoom-fit-size" title="zoom_fit_size ()">zoom_fit_size</a>                       (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> dest_width</code></em>,
 
41
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> dest_height</code></em>,
 
42
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> src_width</code></em>,
 
43
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> src_height</code></em>,
 
44
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> upscale_smaller</code></em>,
 
45
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *width</code></em>,
 
46
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *height</code></em>);
 
47
<span class="returnvalue">double</span>              <a class="link" href="eog-zoom.html#zoom-fit-scale" title="zoom_fit_scale ()">zoom_fit_scale</a>                      (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> dest_width</code></em>,
 
48
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> dest_height</code></em>,
 
49
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> src_width</code></em>,
 
50
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> src_height</code></em>,
 
51
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> upscale_smaller</code></em>);
52
52
</pre>
53
53
</div>
54
54
<div class="refsect1">
60
60
<a name="eog-zoom.details"></a><h2>Details</h2>
61
61
<div class="refsect2">
62
62
<a name="zoom-fit-size"></a><h3>zoom_fit_size ()</h3>
63
 
<pre class="programlisting"><span class="returnvalue">void</span>                zoom_fit_size                       (<em class="parameter"><code><span class="type">guint</span> dest_width</code></em>,
64
 
                                                         <em class="parameter"><code><span class="type">guint</span> dest_height</code></em>,
65
 
                                                         <em class="parameter"><code><span class="type">guint</span> src_width</code></em>,
66
 
                                                         <em class="parameter"><code><span class="type">guint</span> src_height</code></em>,
67
 
                                                         <em class="parameter"><code><span class="type">gboolean</span> upscale_smaller</code></em>,
68
 
                                                         <em class="parameter"><code><span class="type">guint</span> *width</code></em>,
69
 
                                                         <em class="parameter"><code><span class="type">guint</span> *height</code></em>);</pre>
 
63
<pre class="programlisting"><span class="returnvalue">void</span>                zoom_fit_size                       (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> dest_width</code></em>,
 
64
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> dest_height</code></em>,
 
65
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> src_width</code></em>,
 
66
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> src_height</code></em>,
 
67
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> upscale_smaller</code></em>,
 
68
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *width</code></em>,
 
69
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *height</code></em>);</pre>
70
70
<p>
71
71
Computes the final dimensions of an image that is to be scaled to fit to a
72
72
certain size.  If <em class="parameter"><code>upscale_smaller</code></em> is TRUE, then images smaller than the
110
110
<hr>
111
111
<div class="refsect2">
112
112
<a name="zoom-fit-scale"></a><h3>zoom_fit_scale ()</h3>
113
 
<pre class="programlisting"><span class="returnvalue">double</span>              zoom_fit_scale                      (<em class="parameter"><code><span class="type">guint</span> dest_width</code></em>,
114
 
                                                         <em class="parameter"><code><span class="type">guint</span> dest_height</code></em>,
115
 
                                                         <em class="parameter"><code><span class="type">guint</span> src_width</code></em>,
116
 
                                                         <em class="parameter"><code><span class="type">guint</span> src_height</code></em>,
117
 
                                                         <em class="parameter"><code><span class="type">gboolean</span> upscale_smaller</code></em>);</pre>
 
113
<pre class="programlisting"><span class="returnvalue">double</span>              zoom_fit_scale                      (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> dest_width</code></em>,
 
114
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> dest_height</code></em>,
 
115
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> src_width</code></em>,
 
116
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> src_height</code></em>,
 
117
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> upscale_smaller</code></em>);</pre>
118
118
<p>
119
119
Similar to <a class="link" href="eog-zoom.html#zoom-fit-size" title="zoom_fit_size ()"><code class="function">zoom_fit_size()</code></a>, but returns the zoom factor of the final image
120
120
with respect to the original image's size.