image_rotate

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 image_rotate($source, $destination, $degrees, $background = 0x000000)
drupal7 image_rotate(stdClass $image, $degrees, $background = NULL)

Rotate an image by the given number of degrees.

see image_load()

Übergabeparameter

$image An image object returned by image_load().

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

$background An hexadecimal 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. For images that support transparency, this will default to transparent. Otherwise it will be white.

Rückgabewert

TRUE or FALSE, based on success.

See also

image_gd_rotate()

Verwandte Themen

Code

includes/image.inc, line 264

<?php
function image_rotate(stdClass $image, $degrees, $background = NULL) {
  return image_toolkit_invoke('rotate', $image, array($degrees, $background));
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen