Home > PHP > Function > GD > imagesettile()

imagesettile()

imagesettile - Set the tile image for filling

Syntax

bool imagesettile (resource $image, resource $tile)

Arguments

  • image - An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
  • tile - The image resource to be used as a tile.

Description

imagesettile() sets the tile image to be used by all region filling functions (such as imagefill() and imagefilledpolygon()) when filling with the special color IMG_COLOR_TILED.

Version

PHP 4.0.6, 5

Return value

Returns TRUE on success or FALSE on failure.