П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
Поиск по сайту:
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое








Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 5565 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 7865 раз(а).

Учебник HTML.
Просмотров 4617 раз(а).

Руководство по PHP5.
Просмотров 1184 раз(а).

Хостинг через призму DNS.
Просмотров 6459 раз(а).

Подборка текстов стандартных документов.
Просмотров 57235 раз(а).

Учебник PHP - Самоучитель
Просмотров 4843 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 10898 раз(а).

Внешние атаки...
Просмотров 6504 раз(а).

Учебник PHP.
Просмотров 3943 раз(а).

SSI в примерах.
Просмотров 964 раз(а).



 
 
| Добавить в избранное | Сделать стартовой | Помощь





Руководство по PHP
Пред. След.

imagerotate

(PHP 4 >= 4.3.0, PHP 5)

imagerotate -- Rotate an image with a given angle

Description

resource imagerotate ( resource src_im, float angle, int bgd_color [, int ignore_transparent] )

Rotates the src_im image using a given angle in degrees. bgd_color specifies the color of the uncovered zone after the rotation.

The center of rotation is the center of the image, and the rotated image is scaled down so that the whole rotated image fits in the destination image - the edges are not clipped.

If ignore_transparent is set and non-zero, transparent colors are ignored (otherwise kept). This parameter was added in PHP 5.1.

Пример 1. Rotate an image 180 degrees

This example rotates an image 180 degrees - upside down.

// File and rotation
$filename = 'test.jpg';
$degrees = 180;

// Content type
header('Content-type: image/jpeg');

// Load
$source = imagecreatefromjpeg($filename);

// Rotate
$rotate = imagerotate($source, $degrees, 0);

// Output
imagejpeg($rotate);

Замечание: Эта функция доступна только в том случае, если PHP был скомпилирован со встроенной библиотекой GD.



Если Вы не нашли что искали, то рекомендую воспользоваться поиском по сайту:
 





Copyright © 2005-2016 Project.Net.Ru