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.
Most recent edit on 2007-07-24 16:08:23 by GasperKozak

Additions:
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.

Deletions:
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 png), the background color will be undefined.



Oldest known version of this page was edited on 2007-03-03 11:47:33 by GasperKozak []
Page view:

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 png), 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
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.0462 seconds