WideImage 1.0 branch (discontinued)

WideImage Wiki : opRotate

MainPage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Support This Project SourceForge.net Logo
Important notice: the development of WideImage 1.0 branch is discontinued. Please visit http://wideimage.sourceforge.net for the new version of library and documentation.
This web site will remain accessible to serve as documentation for the old versions of the library. For help on migration, please refer to the migration guide.

wiImage::rotate()

See: List of operations

Signature

wiImage::rotate($angle, $bgColor = null, $ignoreTransparent = true)

Parameters



Description

This method will rotate an image with a given angle using imagerotate().

If you set $bgColor to null, a transparent color will be detected. If the image is not transparent, fully transparent alpha-color will be allocated with allocateColorAlpha(). If you save such an image to a format that doesn't support transparency (like jpeg), the background color will be undefined.

Notes


Examples

$img = wiImage::load('/path/to/an/image.png');

// rotate and save
$img->rotate(45)->save('rotated.png');



CategoryDocApi

There are no comments on this page. [Add comment]

WideImage - an Object-Oriented PHP Image Library for Image manipulation
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0550 seconds