update : 2015.11.03
php.shukuma.com

검색:
 
 
Enable or disable interlace

imageinterlace

(PHP 4, PHP 5, PHP 7)

imageinterlaceEnable or disable interlace

설명

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

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.

인수

image

imagecreatetruecolor() 등의 이미지 생성 함수에서 반환한 이미지 자원.

interlace

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

반환값

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

예제

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);
?>