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::asGrayscale()
See:
List of operations
Signature
wiImage::asGrayscale()
Parameters
- result (wiTrueColorImage): grayscale true-color image
Description
This method returns a grayscale copy of an image. It preserves transparency and alpha channel information.
Examples
$img = wiImage::load('/path/to/an/image.png');
$img->asGrayscale()->saveToFile('grayscale.jpg');
CategoryDocApi
There are no comments on this page. [Add comment]