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::asTrueColor()
See:
List of operations
Signature
wiImage::asTrueColor()
Parameters
- result (wiTrueColorImage): a true-color image
Description
This method returns a truecolor copy of an image. It preserves transparency information.
Notes
For wiTrueColorImage objects, this returns a copy.
Examples
// load an 8-bit gif and save it as a truecolor png
$img = wiImage::load('/path/to/an/image.gif');
$img->asTrueColor()->saveToFile('truecolor.png');
CategoryDocApi
There are no comments on this page. [Add comment]