Re: Image/Barcode

From: Date: Sat, 23 Apr 2011 07:49:54 +0000
Subject: Re: Image/Barcode
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31077@lists.php.net to get a copy of this message
Hello Alejandro, > I want to use this code in php for show an image of barcode > $im = @imagecreate(400, 55) >     or die("Cannot Initialize new GD image stream"); > imagestring($im, 1, 5, 5, "hello", $color_texto); > But by replacing "hello" by the result that return it by > require_once 'Image/Barcode.php'; > Image_Barcode::draw($string, "code128", "png"); > I want to know if is possible. No, that's not possible easily because you need a font that draws barcodes. Without that, you're lost. Using Image_Barcode is the correct way in my eyes. -- Regards/Mit freundlichen Grüßen Christian Weiske -=≡ Geeking around in the name of science since 1982 ≡=-

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.general (#31077) next »