<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.image.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.imagetypes.php',
    1 => 'imagetypes',
    2 => 'Devuelve los tipos de im&aacute;genes soportados por la versi&oacute;n actual de PHP',
  ),
  'up' => 
  array (
    0 => 'ref.image.php',
    1 => 'Funciones de GD e Im&aacute;genes',
  ),
  'prev' => 
  array (
    0 => 'function.imagettftext.php',
    1 => 'imagettftext',
  ),
  'next' => 
  array (
    0 => 'function.imagewbmp.php',
    1 => 'imagewbmp',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/image/functions/imagetypes.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imagetypes" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imagetypes</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.2, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imagetypes</span> &mdash; <span class="dc-title">Devuelve los tipos de imágenes soportados por la versión actual de PHP</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.imagetypes-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imagetypes</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Devuelve un campo de octetos correspondiente a los formatos de imágenes soportados
   por la versión de PHP utilizada.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.imagetypes-parameters">
  <h3 class="title">Parámetros</h3>
  <p class="para">Esta función no contiene ningún parámetro.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.imagetypes-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Devuelve un campo de octetos correspondiente a los formatos de imágenes soportados
   por la versión de GD utilizada. Los valores siguientes son posibles:
   <strong><code><a href="image.constants.php#constant.img-avif">IMG_AVIF</a></code></strong> | <strong><code><a href="image.constants.php#constant.img-bmp">IMG_BMP</a></code></strong> |
   <strong><code><a href="image.constants.php#constant.img-gif">IMG_GIF</a></code></strong> | <strong><code><a href="image.constants.php#constant.img-jpg">IMG_JPG</a></code></strong> |
   <strong><code><a href="image.constants.php#constant.img-png">IMG_PNG</a></code></strong> | <strong><code><a href="image.constants.php#constant.img-wbmp">IMG_WBMP</a></code></strong> |
   <strong><code><a href="image.constants.php#constant.img-xpm">IMG_XPM</a></code></strong> | <strong><code><a href="image.constants.php#constant.img-webp">IMG_WEBP</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.imagetypes-changelog">
  <h3 class="title">Historial de cambios</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Versión</th>
       <th>Descripción</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.1.0</td>
       <td>
        Añadida la constante <strong><code><a href="image.constants.php#constant.img-avif">IMG_AVIF</a></code></strong>.
       </td>
      </tr>

      <tr>
       <td>7.2.0</td>
       <td>
        Añadida la constante <strong><code><a href="image.constants.php#constant.img-bmp">IMG_BMP</a></code></strong>.
       </td>
      </tr>

      <tr>
       <td>7.0.10</td>
       <td>
        Añadida la constante <strong><code><a href="image.constants.php#constant.img-webp">IMG_WEBP</a></code></strong>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.imagetypes-examples">
  <h3 class="title">Ejemplos</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Ejemplo #1 Ejemplo con <span class="function"><strong>imagetypes()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">if (</span><span style="color: #0000BB">imagetypes</span><span style="color: #007700">() &amp; </span><span style="color: #0000BB">IMG_PNG</span><span style="color: #007700">) {<br />    echo </span><span style="color: #DD0000">"El tipo PNG es soportado"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.imagetypes-seealso">
  <h3 class="title">Ver también</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.gd-info.php" class="function" rel="rdfs-seeAlso">gd_info()</a> - Devuelve informaci&oacute;n sobre la biblioteca GD instalada</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>