image_rotate

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

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

Версии
5
image_rotate($source, $destination, $degrees)
6
image_rotate($source, $destination, $degrees, $background = 0x000000)

Rotate an image by the given number of degrees.

Параметры

$source The file path of the source image.

$destination The file path of the destination image.

$degrees The number of (clockwise) degrees to rotate the image.

$background An hexidecimal integer specifying the background color to use for the uncovered area of the image after the rotation. E.g. 0x000000 for black, 0xff00ff for magenta, and 0xffffff for white.

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

TRUE or FALSE, based on success.

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

Код

<?php
function image_rotate($source, $destination, $degrees, $background = 0x000000) {
  return image_toolkit_invoke('rotate', array($source, $destination, $degrees, $background));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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