Below are PHP image functions:
```php
bool imageline ( resource $image, int $x1, int $y1, int $x2, int $y2, int $color )
```
**imageline()** draws a line in the specified `$image` from coordinates (`$x1`, `$y1`) to (`$x2`, `$y2`) using the `$color` color. The top-left corner of the image is (0, 0).
```php
bool imagestring ( resource $image, int $font, int $x, int $y, string $s, int $col )
```
**imagestring()** draws the string `$s` onto the image represented by `$image` at the coordinates (`$x`, `$y`). These coordinates represent the top-left corner of the string, and the top-left corner of the entire image is (0, 0). If `$font` is set to 1, 2, 3, 4, or 5, it uses built-in fonts.
```php
array imagettftext ( resource $image, float $size, float $angle, int $x, int $y, int $color, string $fontfile, string $text )
```
This function is more powerful and allows for writing text onto an image with more parameters, such as font size, angle, position, color, and font file. It is similar to the previous function but more advanced.
```php
bool imagefilltoborder ( resource $image, int $x, int $y, int $border, int $color )
```
**imagefilltoborder()** performs a flood fill starting at point (`$x`, `$y`) using the `$color` color until it hits the border color `$border`. [Note: All colors within the boundary will be filled. If the specified border color is the same as the point's color, no filling will occur. If the border color does not exist in the image, the entire image will be filled.]
```php
bool imagefilledellipse ( resource $image, int $cx, int $cy, int $w, int $h, int $color )
```
**imagefilledellipse()** draws a filled ellipse centered at (`$cx`, `$cy`) in the image represented by `$image`. `$w` and `$h` specify the width and height of the ellipse, respectively. The ellipse is filled with the `$color` color. Returns TRUE on success and FALSE on failure.
**Outputting image data:** `imagepng($image[, $filename])`
**PHP Image Example 1:** Output a blue background with intersecting white lines.
```php
```
**Output Image:** A 35x35 pixel image with a blue background and two intersecting white diagonal lines.