Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/05/2003, 11:39
Avatar de lochorui
lochorui
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 899
Antigüedad: 22 años, 2 meses
Puntos: 2
Gracias cain he conseguido mas o menos peor no se que me falla y es q hay cosas que no se que siginifacn.

Codigo:
Código PHP:
function imagettftexttransparent(&$im,$size,$angle,$x,$y,&$col,$fontfile,$text,$pct) { 
    
$im_w imagesx($im); // Get the image width 
    
$im_h imagesy($im); // Get the image height 
    
$new imagecreate($im_w,$im_h); // Create a buffer 
    
imagesetpixel($im,$im_w-1,0,$col); // Set a pixel down, so we can easily get the color 
    
$index imagecolorat($im,$im_w-1,0); // Get the color at that pixel 
    
$rgb imagecolorsforindex($im,$index); // Get the index of that color 
    
$r $rgb["red"]; // Get the red value 
    
$g $rgb["green"]; // Get the green value 
    
$b $rgb["blue"]; // Get the blue value 
    
$color imagecolorallocate($new,$r,$g,$b); // Allocate this color on the buffer 
    
$copy imagecopy($new,$im,0,0,0,0,$im_w,$im_h); // Copy the old image onto the buffer 
    
$text imagettftext($new,$size,$angle,$x,$y,$color,$fontfile,$text); // Draw the text 
    
$merge imagecopymerge($im,$new,0,0,0,0,$im_w,$im_h,$pct); // Copy the buffer back onto the original image 
    
imagedestroy($new); // Destroy the buffer 

}
imagettftexttransparent($newimage,400,50,$red,"arial.ttf","HOLA CARACOLA",$pct); 
pues ese ultimo pct no se qu sera.

me da el siguiente error
Cita:
Fatal error: Cannot pass parameter 6 by reference in /home/lomoon/public_html/Nuevo/Admin/pruebamarcas.php on line 51
la 51 es la ultiam en la que le digo que me realice mi marca d agua

Un saludo