printing an image done with the GD library
Posted: Thu Apr 21, 2005 5:39 am
i am making labels, and i want to print them on the labels printer!
the label code is like this :
the thing is when on the clisend side i do :
the thing is when i choosed the label printer and print it i accept a cleant label !!!
maybe is beacuse the image isnt execlly an image in the brwoser (well i don know execlly how to explain altgouh i see it on screen!)
does any1 have an idea?
thnaks i nadvance
peleg
the image isn't printed to the
the label code is like this :
Code: Select all
<?
header('Content-Type: text/html; charset=iso-8859-8');
$im = imagecreate(86,281);
$bg = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
font = imageloadfont("C:\\Program Files\\Apache Group\\Apache2\\htdocs\\test\\Miriam Fixed.gdf");
imagestringup($im, $font,11,80, strrev("áå÷ø"), $black);
imagepng($im);
?>Code: Select all
<img src="e;http://localhost/test/jpgraph-1.17/jpgraph-1.17/src/Examples/test0.php"e;></img>
<script>
window.print();
</script>maybe is beacuse the image isnt execlly an image in the brwoser (well i don know execlly how to explain altgouh i see it on screen!)
does any1 have an idea?
thnaks i nadvance
peleg
the image isn't printed to the