<refentry id="exo-Extensions-to-gdk-pixbuf">
<refmeta>
<refentrytitle>Extensions to gdk-pixbuf</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>EXO Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>Extensions to gdk-pixbuf</refname><refpurpose>Miscelleanous extensions to the gdk-pixbuf library</refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>

#include &lt;exo/exo.h&gt;


<link linkend="GdkPixbuf">GdkPixbuf</link>*  <link linkend="exo-gdk-pixbuf-scale-ratio">exo_gdk_pixbuf_scale_ratio</link>      (<link linkend="GdkPixbuf">GdkPixbuf</link> *source,
                                             <link linkend="gint">gint</link> dest_size);
</synopsis>
</refsynopsisdiv>









<refsect1>
<title>Description</title>
<para>
This facility includes several functions to extend the basic functionality
provided by the gdk-pixbuf library.
</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="exo-gdk-pixbuf-scale-ratio"/>exo_gdk_pixbuf_scale_ratio ()</title>
<indexterm><primary>exo_gdk_pixbuf_scale_ratio</primary></indexterm><programlisting><link linkend="GdkPixbuf">GdkPixbuf</link>*  exo_gdk_pixbuf_scale_ratio      (<link linkend="GdkPixbuf">GdkPixbuf</link> *source,
                                             <link linkend="gint">gint</link> dest_size);</programlisting>
<para>
Scales <parameter>source</parameter> to <parameter>dest_size</parameter> while preserving the aspect ratio of
<parameter>source</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>source</parameter>&nbsp;:</term>
<listitem><simpara> The source <link linkend="GdkPixbuf"><type>GdkPixbuf</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>dest_size</parameter>&nbsp;:</term>
<listitem><simpara> The target size in pixel.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> A newly created <link linkend="GdkPixbuf"><type>GdkPixbuf</type></link>.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
