Home > PHP > Function > GD > imageinterlace()

imageinterlace()

imageinterlace - Enable or disable interlace

Syntax

int imageinterlace (resource $image, int $interlace)

Arguments

  • image - An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
  • interlace - If non-zero, the image will be interlaced, else the interlace bit is turned off.

Description

imageinterlace() turns the interlace bit on or off.

Version

PHP 4, 5

Return value

Returns 1 if the interlace bit is set for the image, 0 otherwise.