Hallo ik wil graag ronde hoeken maken in mijn site maar ik wil weten hoe ik dit het beste doe ik heb mijn 4 hoeken al in een bestandje maar nu wil ik daar een div van maken hoe doe ik dit ?
Ik denk dat je een deel van de hoeken transparant moet maken.

hier onder een voorbeeldje (LET OP: dit genereert een png plaatje met tekst)

het zit 'm in regel 10 en regel 20
<?
//-- width & height of img
$width = strlen($_GET['tekst']) * 9;
$height = 15;

//-- create img
$txtimg = imagecreate($width, $height);

// Create some colors
$transparant= imagecolorallocate($txtimg, 51, 80, 124);
$white = imagecolorallocate($txtimg, 255, 255, 255);
$grey = imagecolorallocate($txtimg, 128, 128, 128);
$black = imagecolorallocate($txtimg, 0, 0, 0);

// Replace path by your own font path
$font = '/full/path/naar/mijn/site/public_html/fonts/verdana.ttf';


//-- Set bgcolor as transparent
ImageColorTransparent($txtimg, $transparant);

//-- insert shadow
imagettftext($txtimg, 10, 0, 0, 11, $black, $font, stripslashes($_GET['tekst']));
imagettftext($txtimg, 10, 0, 0, 12, $black, $font, stripslashes($_GET['tekst']));

// Add the text
imagettftext($txtimg, 10, 0, 0, 10, $white, $font, stripslashes($_GET['tekst']));

//-- send header information
header("Content-Type: image/png");
//-- show img
imagepng($txtimg);
//-- destroy img
imagedestroy($txtimg);
?>
http://www.phpfreakz.nl/forum.php?forum=1&iid=614280

Reageren