~ubuntu-branches/ubuntu/precise/gdk-pixbuf/precise

« back to all changes in this revision

Viewing changes to docs/reference/gdk-pixbuf/html/gdk-pixbuf-Scaling.html

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2011-09-02 12:05:31 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: package-import@ubuntu.com-20110902120531-m8ps135i9wx0wu9c
Tags: 2.24.0-1
New upstream bug fix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                                                         <em class="parameter"><code><a class="link" href="gdk-pixbuf-Scaling.html#GdkInterpType" title="enum GdkInterpType"><span class="type">GdkInterpType</span></a> interp_type</code></em>,
63
63
                                                         <em class="parameter"><code><span class="type">int</span> overall_alpha</code></em>,
64
64
                                                         <em class="parameter"><code><span class="type">int</span> check_size</code></em>,
65
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color1</code></em>,
66
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color2</code></em>);
 
65
                                                         <em class="parameter"><code><span class="type">guint32</span> color1</code></em>,
 
66
                                                         <em class="parameter"><code><span class="type">guint32</span> color2</code></em>);
67
67
<span class="returnvalue">void</span>                <a class="link" href="gdk-pixbuf-Scaling.html#gdk-pixbuf-composite" title="gdk_pixbuf_composite ()">gdk_pixbuf_composite</a>                (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *src</code></em>,
68
68
                                                         <em class="parameter"><code><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *dest</code></em>,
69
69
                                                         <em class="parameter"><code><span class="type">int</span> dest_x</code></em>,
91
91
                                                         <em class="parameter"><code><span class="type">int</span> check_x</code></em>,
92
92
                                                         <em class="parameter"><code><span class="type">int</span> check_y</code></em>,
93
93
                                                         <em class="parameter"><code><span class="type">int</span> check_size</code></em>,
94
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color1</code></em>,
95
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color2</code></em>);
 
94
                                                         <em class="parameter"><code><span class="type">guint32</span> color1</code></em>,
 
95
                                                         <em class="parameter"><code><span class="type">guint32</span> color2</code></em>);
96
96
enum                <a class="link" href="gdk-pixbuf-Scaling.html#GdkPixbufRotation" title="enum GdkPixbufRotation">GdkPixbufRotation</a>;
97
97
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         <a class="link" href="gdk-pixbuf-Scaling.html#gdk-pixbuf-rotate-simple" title="gdk_pixbuf_rotate_simple ()">gdk_pixbuf_rotate_simple</a>            (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *src</code></em>,
98
98
                                                         <em class="parameter"><code><a class="link" href="gdk-pixbuf-Scaling.html#GdkPixbufRotation" title="enum GdkPixbufRotation"><span class="type">GdkPixbufRotation</span></a> angle</code></em>);
99
99
<a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         <a class="link" href="gdk-pixbuf-Scaling.html#gdk-pixbuf-flip" title="gdk_pixbuf_flip ()">gdk_pixbuf_flip</a>                     (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *src</code></em>,
100
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> horizontal</code></em>);
 
100
                                                         <em class="parameter"><code><span class="type">gboolean</span> horizontal</code></em>);
101
101
</pre>
102
102
</div>
103
103
<div class="refsect1">
139
139
<p>
140
140
</p>
141
141
<div class="example">
142
 
<a name="id536096"></a><p class="title"><b>Example 2. Handling an expose event.</b></p>
 
142
<a name="id474078"></a><p class="title"><b>Example 2. Handling an expose event.</b></p>
143
143
<div class="example-contents">
144
144
<p>
145
145
</p>
288
288
</tr>
289
289
<tr>
290
290
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
291
 
<td>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not enough memory could be
 
291
<td>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if not enough memory could be
292
292
allocated for it. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
293
293
</td>
294
294
</tr>
386
386
                                                         <em class="parameter"><code><a class="link" href="gdk-pixbuf-Scaling.html#GdkInterpType" title="enum GdkInterpType"><span class="type">GdkInterpType</span></a> interp_type</code></em>,
387
387
                                                         <em class="parameter"><code><span class="type">int</span> overall_alpha</code></em>,
388
388
                                                         <em class="parameter"><code><span class="type">int</span> check_size</code></em>,
389
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color1</code></em>,
390
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color2</code></em>);</pre>
 
389
                                                         <em class="parameter"><code><span class="type">guint32</span> color1</code></em>,
 
390
                                                         <em class="parameter"><code><span class="type">guint32</span> color2</code></em>);</pre>
391
391
<p>
392
392
Creates a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> by scaling <em class="parameter"><code>src</code></em> to <em class="parameter"><code>dest_width</code></em> x
393
393
<em class="parameter"><code>dest_height</code></em> and compositing the result with a checkboard of colors
431
431
</tr>
432
432
<tr>
433
433
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
434
 
<td>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not enough memory could be
 
434
<td>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if not enough memory could be
435
435
allocated for it. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
436
436
</td>
437
437
</tr>
547
547
                                                         <em class="parameter"><code><span class="type">int</span> check_x</code></em>,
548
548
                                                         <em class="parameter"><code><span class="type">int</span> check_y</code></em>,
549
549
                                                         <em class="parameter"><code><span class="type">int</span> check_size</code></em>,
550
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color1</code></em>,
551
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> color2</code></em>);</pre>
 
550
                                                         <em class="parameter"><code><span class="type">guint32</span> color1</code></em>,
 
551
                                                         <em class="parameter"><code><span class="type">guint32</span> color2</code></em>);</pre>
552
552
<p>
553
553
Creates a transformation of the source image <em class="parameter"><code>src</code></em> by scaling by
554
554
<em class="parameter"><code>scale_x</code></em> and <em class="parameter"><code>scale_y</code></em> then translating by <em class="parameter"><code>offset_x</code></em> and <em class="parameter"><code>offset_y</code></em>,
699
699
</tr>
700
700
<tr>
701
701
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
702
 
<td>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not enough memory could be
 
702
<td>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if not enough memory could be
703
703
allocated for it. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
704
704
</td>
705
705
</tr>
711
711
<div class="refsect2">
712
712
<a name="gdk-pixbuf-flip"></a><h3>gdk_pixbuf_flip ()</h3>
713
713
<pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         gdk_pixbuf_flip                     (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *src</code></em>,
714
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> horizontal</code></em>);</pre>
 
714
                                                         <em class="parameter"><code><span class="type">gboolean</span> horizontal</code></em>);</pre>
715
715
<p>
716
716
Flips a pixbuf horizontally or vertically and returns the
717
717
result in a new pixbuf.
727
727
<tr>
728
728
<td><p><span class="term"><em class="parameter"><code>horizontal</code></em> :</span></p></td>
729
729
<td>
730
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to flip horizontally, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to flip vertically</td>
 
730
<code class="literal">TRUE</code> to flip horizontally, <code class="literal">FALSE</code> to flip vertically</td>
731
731
</tr>
732
732
<tr>
733
733
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
734
 
<td>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if not enough memory could be
 
734
<td>the new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>, or <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS"><code class="literal">NULL</code></a> if not enough memory could be
735
735
allocated for it. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
736
736
</td>
737
737
</tr>
742
742
</div>
743
743
<div class="refsect1">
744
744
<a name="gdk-pixbuf-Scaling.see-also"></a><h2>See Also</h2>
745
 
<a href="http://library.gnome.org/devel/gdk3/gdk-GdkRGB.html">GdkRGB</a>.
 
745
GdkRGB.
746
746
</div>
747
747
</div>
748
748
<div class="footer">