WideImage 1.0 branch (discontinued)

WideImage Wiki : opAsMask

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::asMask()

See: List of operations

Signature

wiImage::asMask()

Parameters


Description

This method returns a mask of an image. For transparent images with single-color transparency this is a black and white image with transparent areas marked as black, and non-transparent as white. For alpha-transparent images, strength of grey color (r=g=b) marks the opacity for each pixel, where black is completely transparent and white is completely opaque.

Examples

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



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.3211 seconds