?php
header
(
"Content-type
:
image
/
png")
;
$im
=
@ImageCreate
(50
,
100
)
or
die
("Kann
keinen
neuen
GD-Bild-Stream
erzeugen")
;
$background_color
=
ImageColorAllocate
($im
,
255
,
255
,
255)
;
$text_color
=
ImageColorAllocate
($im
,
233
,
14
,
91)
;
ImageString
($im
,
1
,
5
,
5
,
"Ein
Test-String"
,
$text_color)
;
ImagePNG
($im)
;
?
|