WideImage logo

WideImage Wiki : opAsMask

MainPage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
SourceForge.net Logo
Most recent edit on 2007-07-24 16:05:47 by GasperKozak

Additions:
~- result (wiTrueColorImage): a mask (greyscale true-color image)
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.


Deletions:
~- result (wiTrueColorImage): a mask greyscale true-color image
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.
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.




Edited on 2007-03-03 12:05:42 by GasperKozak

Additions:
%%

CategoryDocApi


Deletions:
%%%



Oldest known version of this page was edited on 2007-03-03 12:05:25 by GasperKozak []
Page view:

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.

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();
%
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.2326 seconds