login  Naam:   Wachtwoord: 
Registreer je!
 Overzicht:
Overzicht > PHP > Image > imagestring()

Gebruik:
imagestring ( resource image, int font_size, int x_as, int y_as, string text, int col);

Uitleg:
Deze - wat uitgebreide functie - creeërt een afbeelding met daarin tekst.


Voorbeeld:
<?php
header
("Content-type: image/gif");
$image = imagecreate(100, 30);
$bg = imagecolorallocate($image, 255, 255, 255);
$textcolor = imagecolorallocate($image, 0, 0, 0);
imagestring($image, 3, 0, 0, "Hello world!", $textcolor);
imagegif($image);
imagedestroy($image);
?> 

Bijdragen :
Er zijn nog geen bijdragen.


 Overzicht
exif_imagetype()
getimagesize()
imagecreate()
imagestring()
imagesx()
imagesy()



© 2002-2026 Sitemasters.be - Regels - Laadtijd: 0.007s