downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::clipImage> <Imagick::chopImage
[edit] Last updated: Fri, 30 Nov 2012

view this page in

Imagick::clear

(PECL imagick 2.0.0)

Imagick::clearClears all resources associated to Imagick object

Opis

bool Imagick::clear ( void )

Clears all resources associated to Imagick object

Zwracane wartoĊ›ci

Zwraca TRUE w przypadku sukcesu.



add a note add a note User Contributed Notes Imagick::clear - [2 notes]
up
1
markus dot s dot schmitz at gmail dot com
6 months ago
One might be suprised that there seems to be no difference between:

<?php
$imagick
= new Imagick();
$imagick->clear();
$imagick->readImage('myfile.jpg');
?>

and

<?php
$imagick
= new Imagick();
$imagick->destroy();
$imagick->readImage('myfile.jpg');
?>

Both functions reset all options and clear all used resources so you might want to use either one of them.
See also: http://php.net/manual/en/imagick.destroy.php
up
0
admin at dinacel dot com
2 days ago
Destroy and clear methods seem to do exactly the same thing
@see http://svn.php.net/viewvc/pecl/imagick/trunk/imagick_class.c?view=markup (l.3066 & l.3087)

The code is duplicated, they do the same thing a bit differently.

 
show source | credits | sitemap | contact | advertising | mirror sites