Ik wil een link aan ieder blokje van mijn GD-plaatje plakken, hoe kan ik dit doen.
Mijn blokje wordt gegeven met
<?php
$x = 50 ;
$y = 50 ;
$img = imagecreatefromjpeg('belgie.jpg');
ImageFilledRectangle ($img,1*$x,$v*$y+0.5*$y,2*$x,$w*$y+0.5*$y,$c1);
// is een van de 22 blokjes
//Horizontale-lijnen
imageline($img, 0.5*$x, 0.5*$y, 6.5*$x, 0.5*$y, $black);
imageline($img, 0.5*$x, $y+0.5*$y, 7.5*$x, $y+0.5*$y, $black);
imageline($img, 0.5*$x, 2*$y+0.5*$y, 7.5*$x, 2*$y+0.5*$y, $black);
imageline($img, 1.5*$x, 3*$y+0.5*$y, 7.5*$x, 3*$y+0.5*$y, $black);
imageline($img, 2.5*$x, 4*$y+0.5*$y, 7.5*$x, 4*$y+0.5*$y, $black);
imageline($img, 3.5*$x, 5*$y+0.5*$y, 6.5*$x, 5*$y+0.5*$y, $black);
//Verticale-lijnen
imageline($img, $x, 0, $x, 3*$y, $black);
imageline($img, 2*$x, 0, 2*$x, 3.5*$y+0.5*$y, $black);
imageline($img, 3*$x, 0, 3*$x, 4.5*$y+0.5*$y, $black);
imageline($img, 4*$x, 0, 4*$x, 5.5*$y+0.5*$y, $black);
imageline($img, 5*$x, 0, 5*$x, 5.5*$y+0.5*$y, $black);
imageline($img, 6*$x, 0, 6*$x, 5.5*$y+0.5*$y, $black);
imageline($img, 7*$x, 0.5*$y+0.5*$y, 7*$x, 4.5*$y+0.5*$y, $black);
?>
379 views