imageinterlace

(PHP 3, PHP 4, PHP 5)

imageinterlace -- 啟動或禁止隔行掃瞄

說明

int imageinterlace ( resource image [, int interlace] )

imageinterlace() 開啟或關閉隔行掃瞄的比特旗標。若果 interlace 為 1 則圖像為隔行掃瞄的,若果 interlace 為 0 則圖像為非隔行掃瞄的。

若果設定了隔行掃瞄比特旗標而圖像使用 JPEG 格式,則圖像被建立為漸進式 JPEG。

本函數返回圖像中是否設定了隔行掃瞄比特旗標。