array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'imagick.clone.php', 1 => 'Imagick::clone', 2 => 'Makes an exact copy of the Imagick object', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.clippathimage.php', 1 => 'Imagick::clipPathImage', ), 'next' => array ( 0 => 'imagick.clutimage.php', 1 => 'Imagick::clutImage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/clone.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::clone

(PECL imagick 2, PECL imagick 3)

Imagick::cloneMakes an exact copy of the Imagick object

Опис

public Imagick::clone(): Imagick

Makes an exact copy of the Imagick object.

Увага

This function has been DEPRECATED as of imagick 3.1.0 in favour of using the clone keyword.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

A copy of the Imagick object is returned.

Журнал змін

Версія Опис
PECL imagick 3.1.0 The method was deprecated in favour of the clone keyword.

Приклади

Приклад #1 Imagick object cloning in different versions of imagick

<?php
// Cloning an Imagick object in imagick 2.x and 3.0:
$newImage = $image->clone();

// Cloning an Imagick object from 3.1.0 on:
$newImage = clone $image;
?>