Новости | Документация | Download | Webboard | FAQ | Поиск | Контакты


imagedestroy

(PHP 4, PHP 5)

imagedestroyDestroy an image

Описание

bool imagedestroy ( resource $image )

imagedestroy() frees any memory associated with image image .

Список параметров

image

An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().

Возвращаемые значения

Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.

Примеры

Пример #1 Using imagedestroy() example

<?php
// create a 100 x 100 image
$im imagecreatetruecolor(100100);

// alter or save the image

// frees image from memory
imagedestroy($im);
?>






  Copyright Apache.ru © 1999-2017, All Rights Reserved Разработка сайта: Inside.ru  
  РЕКЛАМА НА САЙТЕ: |