LaravelConf Taiwan 2020 CFP Started

imageinterlace

(PHP 4, PHP 5, PHP 7)

imageinterlaceEnable or disable interlace

Descrierea

imageinterlace ( resource $image [, int $interlace = 0 ] ) : int

imageinterlace() turns the interlace bit on or off.

If the interlace bit is set and the image is used as a JPEG image, the image is created as a progressive JPEG.

Parametri

image

O resursă - imagine, întoarsă de una din funcțiile de creare a imaginilor, cum ar fi imagecreatetruecolor().

interlace

If non-zero, the image will be interlaced, else the interlace bit is turned off.

Valorile întoarse

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

Exemple

Example #1 Turn on interlacing using imageinterlace()

<?php
// Create an image instance
$im imagecreatefromgif('php.gif');

// Enable interlancing
imageinterlace($imtrue);

// Save the interlaced image
imagegif($im'./php_interlaced.gif');
imagedestroy($im);
?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top