<?php
header('(anti-spam-(anti-spam-(anti-spam-(anti-spam-content-type:)))) image/jpeg');
$filename = 'pollbar_01.jpg';
$filename1 = 'pollbar_02.jpg';
$filename2 = 'pollbar_03.jpg';
$filename3 = 'pollbar_04.jpg';
$filename4 = 'pollbar_05.jpg';
$degrees = 45;
$veld = imagecreate(311,20);
$source = imagecreatefromjpeg($filename);
$source1 = imagecreatefromjpeg($filename1);
$source2 = imagecreatefromjpeg($filename2);
$source3 = imagecreatefromjpeg($filename3);
$source4 = imagecreatefromjpeg($filename4);
$kleur2 = imagecolorallocate($veld, 255, 255, 255);
$rotate = imagerotate($source, $degrees, 0);
imagecopy ($veld,$source, 0, 0,0,0, 8, 19);
imagecopy ($veld,$source1, 8, 0,0,0, 180, 19);
imagecopy ($veld,$source2, 188, 0,0,0, 9, 19);
imagecopy ($veld,$source3, 197, 0,0,0, 105, 19);
imagecopy ($veld,$source4, 302, 0,0,0, 9, 19);
imagestring($veld, 3, 80, 2, "60% / 8 stemmen", $kleur2);
imagejpeg($veld);
?>