Hey All,
I need a barcode, on top of an off white coloured rectangle and for the whole image to be rotated 90 degrees clockwise.
I have the following code:
<?php
require_once("Image/Barcode.php");
//$code = strtoupper($_GET['code']);
$code = '15101967';
$width = 280;
$height = 40;
$im = imagecreate($width, $height);
$offwhite = imagecolorallocate($im, 249, 249, 249);
$im = imagefilledrectangle($im, 0, 0, $width, $height, $offwhite);
$im = Image_Barcode::draw($code, 'int25', 'png', false);
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
That currently just returns the barcode that Image_Barcode builds ignoring the off white rectangle.
Also played around with imagerotate(), but everytime I did it returned nothing so not sure where to put this in the code.
Anyone know where I'm going wrong?
Cheers