captcha_num_bg); $image = imagecreatefromjpeg($CONFIG->pluginspath . "captcha/backgrounds/bg$n.jpg"); // Create a colour (black so its not a simple matter of masking out one colour and ocring the rest) $colour = imagecolorallocate($image, 0,0,0); // Write captcha to image //imagestring($image, 5, 30, 4, $captcha, $black); imagettftext($image, 30, 0, 10, 30, $colour, $CONFIG->pluginspath . "captcha/fonts/1.ttf", $captcha); // Output image imagejpeg($image); // Free memory imagedestroy($image); } ?>