1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="Eye of GNOME Reference Manual">
8
<link rel="up" href="ch06.html" title="Utilities">
9
<link rel="prev" href="eog-eog-pixbuf-util.html" title="eog-pixbuf-util">
10
<link rel="next" href="eog-uta.html" title="uta">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="ch01.html" title="User Interface">
14
<link rel="chapter" href="ch02.html" title="Image data and manipulation">
15
<link rel="chapter" href="ch03.html" title="Printing">
16
<link rel="chapter" href="ch04.html" title="Application and configuration">
17
<link rel="chapter" href="ch05.html" title="Plugins">
18
<link rel="chapter" href="ch06.html" title="Utilities">
19
<link rel="chapter" href="ch07.html" title="Asynchronous jobs">
21
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
22
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
24
<td><a accesskey="p" href="eog-eog-pixbuf-util.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
25
<td><a accesskey="u" href="ch06.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
26
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
27
<th width="100%" align="center">Eye of GNOME Reference Manual</th>
28
<td><a accesskey="n" href="eog-uta.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
30
<tr><td colspan="5" class="shortcuts"><nobr><a href="#eog-zoom.synopsis" class="shortcut">Top</a>
32
<a href="#eog-zoom.description" class="shortcut">Description</a></nobr></td></tr>
34
<div class="refentry" lang="en">
35
<a name="eog-zoom"></a><div class="titlepage"></div>
36
<div class="refnamediv"><table width="100%"><tr>
38
<h2><span class="refentrytitle"><a name="eog-zoom.top_of_page"></a>zoom</span></h2>
41
<td valign="top" align="right"></td>
43
<div class="refsynopsisdiv">
44
<a name="eog-zoom.synopsis"></a><h2>Synopsis</h2>
45
<pre class="synopsis">
46
void <a class="link" href="eog-zoom.html#zoom-fit-size" title="zoom_fit_size ()">zoom_fit_size</a> (guint dest_width,
50
gboolean upscale_smaller,
53
double <a class="link" href="eog-zoom.html#zoom-fit-scale" title="zoom_fit_scale ()">zoom_fit_scale</a> (guint dest_width,
57
gboolean upscale_smaller);
60
<div class="refsect1" lang="en">
61
<a name="eog-zoom.description"></a><h2>Description</h2>
66
<div class="refsect1" lang="en">
67
<a name="eog-zoom.details"></a><h2>Details</h2>
68
<div class="refsect2" lang="en">
69
<a name="zoom-fit-size"></a><h3>zoom_fit_size ()</h3>
70
<pre class="programlisting">void zoom_fit_size (guint dest_width,
74
gboolean upscale_smaller,
78
Computes the final dimensions of an image that is to be scaled to fit to a
79
certain size. If <em class="parameter"><code>upscale_smaller</code></em> is TRUE, then images smaller than the
80
destination size will be scaled up; otherwise, they will be left at their
85
<div class="variablelist"><table border="0">
86
<col align="left" valign="top">
89
<td><p><span class="term"><em class="parameter"><code>dest_width</code></em> :</span></p></td>
90
<td> Width of destination area.
94
<td><p><span class="term"><em class="parameter"><code>dest_height</code></em> :</span></p></td>
95
<td> Height of destination area.
99
<td><p><span class="term"><em class="parameter"><code>src_width</code></em> :</span></p></td>
100
<td> Width of source image.
104
<td><p><span class="term"><em class="parameter"><code>src_height</code></em> :</span></p></td>
105
<td> Height of source image.
109
<td><p><span class="term"><em class="parameter"><code>upscale_smaller</code></em> :</span></p></td>
110
<td> Whether to scale up images smaller than the destination size.
114
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
115
<td> Return value for image width.
119
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
120
<td> Return value for image height.
127
<div class="refsect2" lang="en">
128
<a name="zoom-fit-scale"></a><h3>zoom_fit_scale ()</h3>
129
<pre class="programlisting">double zoom_fit_scale (guint dest_width,
133
gboolean upscale_smaller);</pre>
135
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
136
with respect to the original image's size.</p>
140
<div class="variablelist"><table border="0">
141
<col align="left" valign="top">
144
<td><p><span class="term"><em class="parameter"><code>dest_width</code></em> :</span></p></td>
145
<td> Width of destination area.
149
<td><p><span class="term"><em class="parameter"><code>dest_height</code></em> :</span></p></td>
150
<td> Height of destination area.
154
<td><p><span class="term"><em class="parameter"><code>src_width</code></em> :</span></p></td>
155
<td> Width of source image.
159
<td><p><span class="term"><em class="parameter"><code>src_height</code></em> :</span></p></td>
160
<td> Height of source image.
164
<td><p><span class="term"><em class="parameter"><code>upscale_smaller</code></em> :</span></p></td>
165
<td> Whether to scale up images smaller than the destination size.
169
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
170
<td> Zoom factor with respect to the original size.
180
Generated by GTK-Doc V1.11</div>