image_crop

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/image.inc, строка 263

Версии
5 – 6
image_crop($source, $destination, $x, $y, $width, $height)

Crop an image to the rectangle specified by the given rectangle.

Параметры

$source The file path of the source image.

$destination The file path of the destination image.

$x The top left co-ordinate, in pixels, of the crop area (x axis value).

$y The top left co-ordinate, in pixels, of the crop area (y axis value).

$width The target width, in pixels.

$height The target height, in pixels.

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

TRUE or FALSE, based on success.

Связанные темы

Код

<?php
function image_crop($source, $destination, $x, $y, $width, $height) {
  return image_toolkit_invoke('crop', array($source, $destination, $x, $y, $width, $height));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему