Image/Barcode

From: Date: Thu, 21 Apr 2011 17:46:53 +0000
Subject: Image/Barcode
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31075@lists.php.net to get a copy of this message
Hi...   I want to use this code in php for show an image of barcode <?php header("Content-Type: image/png"); $im = @imagecreate(400, 55)     or die("Cannot Initialize new GD image stream"); $color_fondo = imagecolorallocate($im, 255, 255, 255); $color_texto = imagecolorallocate($im, 0, 0, 0); imagestring($im, 1, 5, 5, "hello", $color_texto); imagepng($im); imagedestroy($im); ?>   But by replacing "hello" by the result that return it by   header ("Content-type: Image/png"); require_once 'Image/Barcode.php'; $string=$_POST["value"]; Image_Barcode::draw($string, "code128", "png"); I want to know if is possible.   Thanks

« previous php.pear.general (#31075) next »