This is part of a image creation script.
All the vars appear to be making the right noises but it does not produce any output.
Is the syntax of the reference to $culler[$i] correct?
Keith
All the vars appear to be making the right noises but it does not produce any output.
Is the syntax of the reference to $culler[$i] correct?
Code:
for($i=0;$i<100;$i++){
$rgb = ImageColorAt($im, 1, $i);
$r[$i] = ($rgb >> 16) & 0xFF;
$g[$i] = ($rgb >> 8) & 0xFF;
$b[$i] = $rgb & 0xFF;
$culler[$i] = imagecolorallocate ($newim,$r[$i],$g[$i],$b[$i]);
imageline($newim,0,$i,$width,$i,[red]\$culler[$i][/red]);
}
header ("Content-type: image/jpeg");
imagejpeg($newim);
Keith