Image_GD::_set_interlacing PHP Method

_set_interlacing() protected method

Sets an interlace mode.
protected _set_interlacing ( resource $image )
$image resource Image to apply interlacing. This is useful for creating progressive jpeg images.
    protected function _set_interlacing($image)
    {
        if ($this->_isProgressiveJpeg) {
            imageinterlace($image, 1);
        } else {
            imageinterlace($image, 0);
        }
    }