Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-release > by-pkgid > dabbad934aa2b21dfdf7cadba1bf877f > files > 47

libSDL_gfx-devel-2.0.22-1.mga1.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>SDL_gfx: SDL_rotozoom.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>SDL_rotozoom.h File Reference</h1><code>#include &lt;math.h&gt;</code><br/>
<code>#include &quot;SDL.h&quot;</code><br/>

<p><a href="_s_d_l__rotozoom_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__rotozoom_8h.html#a6541cd06edcce77d8a6f1c6350c988af">SMOOTHING_OFF</a>&nbsp;&nbsp;&nbsp;0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Disable anti-aliasing (no smoothing).  <a href="#a6541cd06edcce77d8a6f1c6350c988af"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__rotozoom_8h.html#abeb6ae7618fcb315d0399fe65849a2e8">SMOOTHING_ON</a>&nbsp;&nbsp;&nbsp;1</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enable anti-aliasing (smoothing).  <a href="#abeb6ae7618fcb315d0399fe65849a2e8"></a><br/></td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SDL_ROTOZOOM_SCOPE SDL_Surface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__rotozoom_8h.html#a3cb0c11d5edc929579c807dc7612348c">rotozoomSurface</a> (SDL_Surface *src, double angle, double zoom, int smooth)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rotates and zooms a surface and optional anti-aliasing.  <a href="#a3cb0c11d5edc929579c807dc7612348c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SDL_ROTOZOOM_SCOPE SDL_Surface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__rotozoom_8h.html#a454d4234a45eab6ec238a40cc44051d4">rotozoomSurfaceXY</a> (SDL_Surface *src, double angle, double zoomx, double zoomy, int smooth)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rotates and zooms a surface with different horizontal and vertival scaling factors and optional anti-aliasing.  <a href="#a454d4234a45eab6ec238a40cc44051d4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SDL_ROTOZOOM_SCOPE void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__rotozoom_8h.html#a3ca2316375d6faf4f19b26c2f1f14bbc">rotozoomSurfaceSize</a> (int width, int height, double angle, double zoom, int *dstwidth, int *dstheight)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the size of the resulting target surface for a <a class="el" href="_s_d_l__rotozoom_8c.html#a5f64ed53eeee5f2667971c857698d1e5" title="Rotates and zooms a surface and optional anti-aliasing.">rotozoomSurface()</a> call.  <a href="#a3ca2316375d6faf4f19b26c2f1f14bbc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SDL_ROTOZOOM_SCOPE void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__rotozoom_8h.html#a612334fa642f672af953f544da6245d0">rotozoomSurfaceSizeXY</a> (int width, int height, double angle, double zoomx, double zoomy, int *dstwidth, int *dstheight)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the size of the resulting target surface for a <a class="el" href="_s_d_l__rotozoom_8c.html#aab98b5b0da4ea468bacf47f7b85f0ee2" title="Rotates and zooms a surface with different horizontal and vertival scaling factors...">rotozoomSurfaceXY()</a> call.  <a href="#a612334fa642f672af953f544da6245d0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SDL_ROTOZOOM_SCOPE SDL_Surface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__rotozoom_8h.html#a06c8108f8fe8de77cf841c176ee64850">zoomSurface</a> (SDL_Surface *src, double zoomx, double zoomy, int smooth)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Zoom a surface by independent horizontal and vertical factors with optional smoothing.  <a href="#a06c8108f8fe8de77cf841c176ee64850"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SDL_ROTOZOOM_SCOPE void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__rotozoom_8h.html#a7927e415d87ea7856794cd4cc77e0a25">zoomSurfaceSize</a> (int width, int height, double zoomx, double zoomy, int *dstwidth, int *dstheight)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Calculates the size of the target surface for a <a class="el" href="_s_d_l__rotozoom_8c.html#abdd772b2f6b1f26134e4e90cda657a21" title="Zoom a surface by independent horizontal and vertical factors with optional smoothing...">zoomSurface()</a> call.  <a href="#a7927e415d87ea7856794cd4cc77e0a25"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SDL_ROTOZOOM_SCOPE SDL_Surface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__rotozoom_8h.html#a7a7ac2cc0d79d282b5a4c76143b7e7a9">shrinkSurface</a> (SDL_Surface *src, int factorx, int factory)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Shrink a surface by an integer ratio using averaging.  <a href="#a7a7ac2cc0d79d282b5a4c76143b7e7a9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">SDL_ROTOZOOM_SCOPE SDL_Surface *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l__rotozoom_8h.html#ac06e9fa4fce6a1dbae45462529be581e">rotateSurface90Degrees</a> (SDL_Surface *src, int numClockwiseTurns)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rotates a 32 bit surface in increments of 90 degrees.  <a href="#ac06e9fa4fce6a1dbae45462529be581e"></a><br/></td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a6541cd06edcce77d8a6f1c6350c988af"></a><!-- doxytag: member="SDL_rotozoom.h::SMOOTHING_OFF" ref="a6541cd06edcce77d8a6f1c6350c988af" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SMOOTHING_OFF&nbsp;&nbsp;&nbsp;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Disable anti-aliasing (no smoothing). </p>

<p>Definition at line <a class="el" href="_s_d_l__rotozoom_8h_source.html#l00031">31</a> of file <a class="el" href="_s_d_l__rotozoom_8h_source.html">SDL_rotozoom.h</a>.</p>

</div>
</div>
<a class="anchor" id="abeb6ae7618fcb315d0399fe65849a2e8"></a><!-- doxytag: member="SDL_rotozoom.h::SMOOTHING_ON" ref="abeb6ae7618fcb315d0399fe65849a2e8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SMOOTHING_ON&nbsp;&nbsp;&nbsp;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enable anti-aliasing (smoothing). </p>

<p>Definition at line <a class="el" href="_s_d_l__rotozoom_8h_source.html#l00036">36</a> of file <a class="el" href="_s_d_l__rotozoom_8h_source.html">SDL_rotozoom.h</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ac06e9fa4fce6a1dbae45462529be581e"></a><!-- doxytag: member="SDL_rotozoom.h::rotateSurface90Degrees" ref="ac06e9fa4fce6a1dbae45462529be581e" args="(SDL_Surface *src, int numClockwiseTurns)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SDL_ROTOZOOM_SCOPE SDL_Surface* rotateSurface90Degrees </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>numClockwiseTurns</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Rotates a 32 bit surface in increments of 90 degrees. </p>
<p>Specialized 90 degree rotator which rotates a 'src' surface in 90 degree increments clockwise returning a new surface. Faster than rotozoomer since not scanning or interpolation takes place. Input surface must be 32 bit. (code contributed by J. Schiller, improved by C. Allport and A. Schiffler)</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>Source surface to rotate. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>numClockwiseTurns</em>&nbsp;</td><td>Number of clockwise 90 degree turns to apply to the source.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The new, rotated surface; or NULL for surfaces with incorrect input format. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l__rotozoom_8c_source.html#l00789">789</a> of file <a class="el" href="_s_d_l__rotozoom_8c_source.html">SDL_rotozoom.c</a>.</p>

</div>
</div>
<a class="anchor" id="a3cb0c11d5edc929579c807dc7612348c"></a><!-- doxytag: member="SDL_rotozoom.h::rotozoomSurface" ref="a3cb0c11d5edc929579c807dc7612348c" args="(SDL_Surface *src, double angle, double zoom, int smooth)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SDL_ROTOZOOM_SCOPE SDL_Surface* rotozoomSurface </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoom</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>smooth</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Rotates and zooms a surface and optional anti-aliasing. </p>
<p>Rotates and zoomes a 32bit or 8bit 'src' surface to newly created 'dst' surface. 'angle' is the rotation in degrees and 'zoom' a scaling factor. If 'smooth' is set then the destination 32bit surface is anti-aliased. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The surface to rotozoom. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>angle</em>&nbsp;</td><td>The angle to rotate in degrees. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>zoom</em>&nbsp;</td><td>The scaling factor. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>smooth</em>&nbsp;</td><td>Antialiasing flag; set to SMOOTHING_ON to enable.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The new rotozoomed surface. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l__rotozoom_8c_source.html#l01005">1005</a> of file <a class="el" href="_s_d_l__rotozoom_8c_source.html">SDL_rotozoom.c</a>.</p>

</div>
</div>
<a class="anchor" id="a3ca2316375d6faf4f19b26c2f1f14bbc"></a><!-- doxytag: member="SDL_rotozoom.h::rotozoomSurfaceSize" ref="a3ca2316375d6faf4f19b26c2f1f14bbc" args="(int width, int height, double angle, double zoom, int *dstwidth, int *dstheight)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SDL_ROTOZOOM_SCOPE void rotozoomSurfaceSize </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoom</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>dstwidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>dstheight</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the size of the resulting target surface for a <a class="el" href="_s_d_l__rotozoom_8c.html#a5f64ed53eeee5f2667971c857698d1e5" title="Rotates and zooms a surface and optional anti-aliasing.">rotozoomSurface()</a> call. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>The source surface width. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>The source surface height. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>angle</em>&nbsp;</td><td>The angle to rotate in degrees. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>zoom</em>&nbsp;</td><td>The scaling factor. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstwidth</em>&nbsp;</td><td>The calculated width of the rotozoomed destination surface. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstheight</em>&nbsp;</td><td>The calculated height of the rotozoomed destination surface. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_s_d_l__rotozoom_8c_source.html#l00983">983</a> of file <a class="el" href="_s_d_l__rotozoom_8c_source.html">SDL_rotozoom.c</a>.</p>

</div>
</div>
<a class="anchor" id="a612334fa642f672af953f544da6245d0"></a><!-- doxytag: member="SDL_rotozoom.h::rotozoomSurfaceSizeXY" ref="a612334fa642f672af953f544da6245d0" args="(int width, int height, double angle, double zoomx, double zoomy, int *dstwidth, int *dstheight)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SDL_ROTOZOOM_SCOPE void rotozoomSurfaceSizeXY </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoomx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoomy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>dstwidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>dstheight</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the size of the resulting target surface for a <a class="el" href="_s_d_l__rotozoom_8c.html#aab98b5b0da4ea468bacf47f7b85f0ee2" title="Rotates and zooms a surface with different horizontal and vertival scaling factors...">rotozoomSurfaceXY()</a> call. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>The source surface width. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>The source surface height. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>angle</em>&nbsp;</td><td>The angle to rotate in degrees. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>zoomx</em>&nbsp;</td><td>The horizontal scaling factor. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>zoomy</em>&nbsp;</td><td>The vertical scaling factor. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstwidth</em>&nbsp;</td><td>The calculated width of the rotozoomed destination surface. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstheight</em>&nbsp;</td><td>The calculated height of the rotozoomed destination surface. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_s_d_l__rotozoom_8c_source.html#l00966">966</a> of file <a class="el" href="_s_d_l__rotozoom_8c_source.html">SDL_rotozoom.c</a>.</p>

</div>
</div>
<a class="anchor" id="a454d4234a45eab6ec238a40cc44051d4"></a><!-- doxytag: member="SDL_rotozoom.h::rotozoomSurfaceXY" ref="a454d4234a45eab6ec238a40cc44051d4" args="(SDL_Surface *src, double angle, double zoomx, double zoomy, int smooth)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SDL_ROTOZOOM_SCOPE SDL_Surface* rotozoomSurfaceXY </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoomx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoomy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>smooth</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Rotates and zooms a surface with different horizontal and vertival scaling factors and optional anti-aliasing. </p>
<p>Rotates and zooms a 32bit or 8bit 'src' surface to newly created 'dst' surface. 'angle' is the rotation in degrees, 'zoomx and 'zoomy' scaling factors. If 'smooth' is set then the destination 32bit surface is anti-aliased. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The surface to rotozoom. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>angle</em>&nbsp;</td><td>The angle to rotate in degrees. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>zoomx</em>&nbsp;</td><td>The horizontal scaling factor. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>zoomy</em>&nbsp;</td><td>The vertical scaling factor. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>smooth</em>&nbsp;</td><td>Antialiasing flag; set to SMOOTHING_ON to enable.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The new rotozoomed surface. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l__rotozoom_8c_source.html#l01026">1026</a> of file <a class="el" href="_s_d_l__rotozoom_8c_source.html">SDL_rotozoom.c</a>.</p>

</div>
</div>
<a class="anchor" id="a7a7ac2cc0d79d282b5a4c76143b7e7a9"></a><!-- doxytag: member="SDL_rotozoom.h::shrinkSurface" ref="a7a7ac2cc0d79d282b5a4c76143b7e7a9" args="(SDL_Surface *src, int factorx, int factory)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SDL_ROTOZOOM_SCOPE SDL_Surface* shrinkSurface </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>factorx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>factory</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Shrink a surface by an integer ratio using averaging. </p>
<p>Shrinks a 32bit or 8bit 'src' surface to a newly created 'dst' surface. 'factorx' and 'factory' are the shrinking ratios (i.e. 2=1/2 the size, 3=1/3 the size, etc.) The destination surface is antialiased by averaging the source box RGBA or Y information. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly. The input surface is not modified. The output surface is newly allocated.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The surface to shrink. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>factorx</em>&nbsp;</td><td>The horizontal shrinking ratio. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>factory</em>&nbsp;</td><td>The vertical shrinking ratio.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The new, shrunken surface. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l__rotozoom_8c_source.html#l01512">1512</a> of file <a class="el" href="_s_d_l__rotozoom_8c_source.html">SDL_rotozoom.c</a>.</p>

</div>
</div>
<a class="anchor" id="a06c8108f8fe8de77cf841c176ee64850"></a><!-- doxytag: member="SDL_rotozoom.h::zoomSurface" ref="a06c8108f8fe8de77cf841c176ee64850" args="(SDL_Surface *src, double zoomx, double zoomy, int smooth)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SDL_ROTOZOOM_SCOPE SDL_Surface* zoomSurface </td>
          <td>(</td>
          <td class="paramtype">SDL_Surface *&nbsp;</td>
          <td class="paramname"> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoomx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoomy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>smooth</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Zoom a surface by independent horizontal and vertical factors with optional smoothing. </p>
<p>Zooms a 32bit or 8bit 'src' surface to newly created 'dst' surface. 'zoomx' and 'zoomy' are scaling factors for width and height. If 'smooth' is on then the destination 32bit surface is anti-aliased. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly. If zoom factors are negative, the image is flipped on the axes.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>src</em>&nbsp;</td><td>The surface to zoom. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>zoomx</em>&nbsp;</td><td>The horizontal zoom factor. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>zoomy</em>&nbsp;</td><td>The vertical zoom factor. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>smooth</em>&nbsp;</td><td>Antialiasing flag; set to SMOOTHING_ON to enable.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The new, zoomed surface. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l__rotozoom_8c_source.html#l01367">1367</a> of file <a class="el" href="_s_d_l__rotozoom_8c_source.html">SDL_rotozoom.c</a>.</p>

</div>
</div>
<a class="anchor" id="a7927e415d87ea7856794cd4cc77e0a25"></a><!-- doxytag: member="SDL_rotozoom.h::zoomSurfaceSize" ref="a7927e415d87ea7856794cd4cc77e0a25" args="(int width, int height, double zoomx, double zoomy, int *dstwidth, int *dstheight)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SDL_ROTOZOOM_SCOPE void zoomSurfaceSize </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoomx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>zoomy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>dstwidth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>dstheight</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Calculates the size of the target surface for a <a class="el" href="_s_d_l__rotozoom_8c.html#abdd772b2f6b1f26134e4e90cda657a21" title="Zoom a surface by independent horizontal and vertical factors with optional smoothing...">zoomSurface()</a> call. </p>
<p>The minimum size of the target surface is 1. The input factors can be positive or negative.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>The width of the source surface to zoom. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>The height of the source surface to zoom. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>zoomx</em>&nbsp;</td><td>The horizontal zoom factor. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>zoomy</em>&nbsp;</td><td>The vertical zoom factor. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstwidth</em>&nbsp;</td><td>Pointer to an integer to store the calculated width of the zoomed target surface. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dstheight</em>&nbsp;</td><td>Pointer to an integer to store the calculated height of the zoomed target surface. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_s_d_l__rotozoom_8c_source.html#l01317">1317</a> of file <a class="el" href="_s_d_l__rotozoom_8c_source.html">SDL_rotozoom.c</a>.</p>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
</body>
</html>