ID/USUÁRIO:

SENHA:


» perdi minha senha!
» abrir teclado virtual
 . todo o site
 Página principal
 Mapa do site

 . listagens
 Funções de A - D
 Funções de E - H
 Funções de I - M
 Funções de N - Z

 . funções PHP
 image_type_to_mime_type ( )
 image2wbmp ( )
 imagearc ( )
 imagechar ( )
 imagecharup ( )
 imagecolorallocate ( )
 imagecolorallocatealpha ( )
 imagecolorat ( )
 imagecolorclosest ( )
 imagecolordeallocate ( )
 imagecolorexactalpha ( )
 imagecolormatch ( )
 imagecolorresolve ( )
 imagecolorresolvealpha ( )
 imagecolorsforindex ( )
 imagecolortransparent ( )
 imagecopy ( )
 imagecopymerge ( )
 imagecreate ( )
 imagecreatefromgd ( )
 imagecreatefromgd2 ( )
 imagecreatefromgd2part ( )
 imagecreatefromgif ( )
 imagecreatefromjpeg ( )
 imagecreatefrompng ( )
 imagecreatefromwbmp ( )
 imagecreatetruecolor ( )
 imageellipse ( )
 imagefilledellipse ( )
 imagefilledpolygon ( )
 imagegif ( )
 imagejpeg ( )
 imageline ( )
 imagepng ( )
 imagepolygon ( )
 imagepsloadfont ( )
 imagestring ( )
 imagesx ( )
 imagesy ( )
 imagettftext ( )
 imagetypes ( )
 imagewbmp ( )
 implode ( )
 in_array ( )
 is_dir ( )
 is_executable ( )
 is_file ( )
 is_link ( )
 is_readable ( )
 is_uploaded_file ( )
 is_writable ( )
 JDDayOfWeek ( )
 JDMonthname ( )
 JDToFrench ( )
 JDToGregorian ( )
 jdtojewish ( )
 JDToJulian ( )
 jdtounix ( )
 JewishToJD ( )
 jpeg2wbmp ( )
 JulianToJD ( )
 key ( )
 krsort ( )
 ksort ( )
 levenshtein ( )
 link ( )
 linkinfo ( )
 list ( )
 localeconv ( )
 localtime ( )
 lstat ( )
 ltrim
 md5 ( )
 md5_file ( )
 microtime ( )
 mkdir ( )
 mktime ( )
 money_format ( )
 move_uploaded_file ( )
 









 

  Funções PHP

. Glossários
     
Funções PHP - imagecolorallocatealpha ( )
Menu Guias e Glossários


Com o nosso glossário PHP, você poderá localizar todos os comandos e funções do PHP, facilitando a construção da sua home-page.

» Para ver scripts em PHP, clique aqui.
 

Função: imagecolorallocatealpha ( )


(PHP 4 >= 4.3.2, PHP 5)

imagecolorallocatealpha -- Aloca cor para uma imagem

int imagecolorallocatealpha ( resource image, int red, int green, int blue, int alpha)

imagecolorallocatealpha() funciona identicamente a imagecolorallocate() com a adição do parâmetro de transparencia alpha o qual deve ter um valor entre 0 e 127. 0 indica completamente opaco enquanto 127 indica completamente transparente.

Retorna FALSE se falhar.

Exemplo:

Exemplo 1. Exemplo de uso de imagecolorallocatealpha()

<?php
$size = 300;
$image=imagecreatetruecolor($size, $size);

// something to get a white background with black border
$back = imagecolorallocate($image, 255, 255, 255);
$border = imagecolorallocate($image, 0, 0, 0);
imagefilledrectangle($image, 0, 0, $size - 1, $size - 1, $back);
imagerectangle($image, 0, 0, $size - 1, $size - 1, $border);

$yellow_x = 100;
$yellow_y = 75;
$red_x = 120;
$red_y = 165;
$blue_x = 187;
$blue_y = 125;
$radius = 150;

// allocate colors with alpha values
$yellow = imagecolorallocatealpha($image, 255, 255, 0, 75);
$red = imagecolorallocatealpha($image, 255, 0, 0, 75);
$blue = imagecolorallocatealpha($image, 0, 0, 255, 75);

// drawing 3 overlapped circle
imagefilledellipse($image, $yellow_x, $yellow_y, $radius, $radius, $yellow);
imagefilledellipse($image, $red_x, $red_y, $radius, $radius, $red);
imagefilledellipse($image, $blue_x, $blue_y, $radius, $radius, $blue);

// don't forget to output a correct header!
header('content-type: image/png');

// and finally, output the result
imagepng($image);
imagedestroy($image);
?>

Veja também imagecolorallocate() e imagecolordeallocate().




As funçoes estão dividas em 4 listagens:
- Funções de A - D
- Funções de E - H
- Funções de I - M
- Funções de N - Z

Clique no menu ao lado para ter acesso às funções ou para trocar de listagens.




Veja também:
DATAS IMPORTANTES: Ferramenta para lembrar aos seus visitantes todas as datas importantes do ano!


 
» Ou busque pela sua oferta:


De: R$ ,00    Até: R$ ,00
    Página Inicial | Mapa do site | Termos de Uso | Política de Privacidade | Hospedagem de sites
    © 2002-09 SuperTráfego.com - 1546 usuários online - O SuperTráfego é mantido por Spacic Interactive

Setup Grátis + Planos a partir de R$ 7,90!

     
Tráfego grátis para o seu site Setup grátis + planos a partir de R$ 7,90 Registro de domínio .COM .NET .BIZ .INFO Emoticons grátis Ganhe dinheiro com o seu site
Visite nosso patrocinador
Publicidade
  Ofertas: Shopping de ofertas