On Tue, 9 Jul 2002, JSheble wrote:
> I'm using a Zebra label printer in an application I have and in order to
> display an image on the label, according to the ZPL II printer language,
> any image must be converted to HEX code. Does anyone hvae a code snippet
> or know of a free utility that will
$hFile = fopen($PathToFile,'r');
$File = fread($hFile, $SizeOfLargestImageYouHave);
fclose($hFile);
$HexVal = bin2hex($File);
This doesn't do any error checking or stripping of image headers that
may be necessary; you'll have to use string functions (eg; substr()
or maybe regex
I'm using a Zebra label printer in an application I have and in order to
display an image on the label, according to the ZPL II printer language,
any image must be converted to HEX code. Does anyone hvae a code snippet or
know of a free utility that will take a graphic image (BMP, GIF, JPG,
et
3 matches
Mail list logo