Re: Image/Barcode
| From: | Christian Weiske | Date: | Sun, 17 Apr 2011 08:27:28 +0000 |
| Subject: | Re: Image/Barcode | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-31066@lists.php.net to get a copy of this message | ||
Hello Alejandro,
> I want to add the value return by
> require_once 'Image/Barcode.php';
> Image_Barcode::draw($string, "code128", "gif");
>
> to a variable and can see his value as image jpg, png or gif.
The method signature of draw() is as follows:
> function &draw($text, $type = 'int25', $imgtype = 'png',
> $bSendToBrowser = true)
As you see, just set the 4th parameter to false and you get the gd
resource back.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-=≡ Geeking around in the name of science since 1982 ≡=-
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc