| |
| * Link führt ins Internet |
|

| |
Befehl | Version | Beschreibung | Beispiel | Ausgabe |
Befehl
| int imagefilledrectangle ( resource $im, int $x1, int $y1, int $x2, int $y2, int $col ) |
Version
Beschreibung
Mit imagefilledretangle() erstellt man auf einer Arbeitsfläche (im) ein Rechteck
mit den Eckpunkten x1/y1 und x2/y2. Dabei ist der Punkt (x1,y1) die linke obere
Ecke und (x2,y2) die rechte untere Ecke des Rechtecks. Mit col legt man die
Füllfarbe des Rechtecks fest.
Sie auch:
• imagecreate()
• imagecolorallocate()
• imagegif() |
Beispiel
<?PHP
$image = imagecreate ( 300, 150 );
$farbe_body=imagecolorallocate ( $image, 243, 243, 243 );
$farbe_b = imagecolorallocate ( $image, 10, 36, 106 );
imagefilledrectangle ( $image, 50, 60, 230, 90, $farbe_b );
header ( 'Content-Type: image/gif' );
imagegif ( $image );
?>
|
Ausgabe

Achtung: Alle rotgekennzeichneten Elemente gehören nicht zur
Ausgabe des gezeigten Beispiels, sondern dienen nur der
Verständlichkeit. |
|
|
|
|
|
|


|