I get the following error in my code:
Warning: Unable to find image pointer in ...utilities/counters/counterImg.php3 on line 7
Does this mean it can't find the image file?
Here is my code:
function insertImage($intBigImage, $intSmallImage, $startX, $startY){ //(line 2)
$startX = ($startX == "") ? 0 : $startX;
$startY = ($startY == "") ? 0 : $startY;
$maxWidth = imagesx($intBigImage);
$maxHeight = imagesy($intBigImage);
for($x=0; $x<imagesx($intSmallImage); $x++){
if($startX + $x + 1 < $maxWidth){
for($y=0; $y<imagesy($intSmallImage); $y++){
if($startY + $y + 1 < $maxHeight){
$color = imagecolorat($intSmallImage, $x, $y);
imagesetpixel($intBigImage, $startX+$x, $startY+$y, $color);
}
}
}
}
return $intBigImage;
}
Thanks for any help.