Hosting de Calidad
  • Inicio
  • Precios y servicios
  • F.a.q y ayudas
  • Realizar pedido
  • Webs alojadas
  • Quienes somos
  • Foro HyD
  • Contacto

    Zona Dominios

    Entrar
    registro de dominios


    Zona Hosting

    Entrar
    alojamiento web


    5 Métodos de Pago
    Tarjeta de crédito
    Domiciliación
    Transferencia
    Soporte Epagado
    Soporte Paypal

    Liberalización .es

    Ver mas
    dominios .es


  •  
     
     
    SWFBitmap

    SWFBitmap

    (PHP 4 >= 4_0_5)

    SWFBitmap __ Loads Bitmap object

    Description

    new swfbitmap ( string filename [, int alphafilename])

    Aviso

    Esta función es EXPERIMENTAL_ Esto significa que el comportamiento de esta función, el nombre de esta función y en definitiva TODO lo documentado sobre esta función, puede cambiar en una futura version de PHP SIN AVISO_ La advertencia queda hecha, y utilizar esta extensión queda bajo su propia responsabiliad_

    swfbitmap() creates a new SWFBitmap object from the Jpeg or DBL file named filename_ alphafilename indicates a MSK file to be used as an alpha mask for a Jpeg image_

    Nota: We can only deal with baseline (frame 0) jpegs, no baseline optimized or progressive scan jpegs!

    SWFBitmap has the following methods : swfbitmap_>getwidth() and swfbitmap_>getheight()_

    You can't import png images directly, though_ have to use the png2dbl utility to make a dbl ("define bits lossless") file from the png_ The reason for this is that I don't want a dependency on the png library in ming_ autoconf should solve this, but that's not set up yet_

    Ejemplo 1_ Import PNG files

    <?php
      $s = new SWFShape();
      $f = $s_>addFill(new SWFBitmap("png_dbl"));
      $s_>setRightFill($f);
    
      $s_>drawLine(32, 0);
      $s_>drawLine(0, 32);
      $s_>drawLine(_32, 0);
      $s_>drawLine(0, _32);
    
      $m = new SWFMovie();
      $m_>setDimension(32, 32);
      $m_>add($s);
    
      header('Content_type: application/x_shockwave_flash');
      $m_>output();
    ?>

    And you can put an alpha mask on a jpeg fill_

    Ejemplo 2_ swfbitmap() example

    <?php
    
      $s = new SWFShape();
    
      // _msk file generated with "gif2mask" utility
      $f = $s_>addFill(new SWFBitmap("alphafill_jpg", "alphafill_msk"));
      $s_>setRightFill($f);
    
      $s_>drawLine(640, 0);
      $s_>drawLine(0, 480);
      $s_>drawLine(_640, 0);
      $s_>drawLine(0, _480);
    
      $c = new SWFShape();
      $c_>setRightFill($c_>addFill(0x99, 0x99, 0x99));
      $c_>drawLine(40, 0);
      $c_>drawLine(0, 40);
      $c_>drawLine(_40, 0);
      $c_>drawLine(0, _40);
    
      $m = new SWFMovie();
      $m_>setDimension(640, 480);
      $m_>setBackground(0xcc, 0xcc, 0xcc);
    
      // draw checkerboard background
      for($y=0; $y<480; $y+=40)
      {
        for($x=0; $x<640; $x+=80)
        {
          $i = $m_>add($c);
          $i_>moveTo($x, $y);
        }
    
        $y+=40;
    
        for($x=40; $x<640; $x+=80)
        {
          $i = $m_>add($c);
          $i_>moveTo($x, $y);
        }
      }
    
      $m_>add($s);
    
      header('Content_type: application/x_shockwave_flash');
      $m_>output();
    ?>

     
       



    registro de dominios | alojamiento web | hosting por publicidad

       

     

    Manual de linux Manual de apache Manual de php Manual de mysql Manual de SQL Manual del Plesk Como funciona Paypal Manual de html