Bsoft function
img_add_alpha
Source:
src/img/img_colour.c
Description:
Adds an alpha channel to generate a RGBA (red-green-blue-alpha) image.
Algorithm:
The new alpha channel contains a zero for original black and 255
for original nonblack RGB colours.
Arguments:
| Bimage* p | image (replaced by new image).
|
Returns:
int error code.
Prototype:
int img_add_alpha(Bimage* p)
Functions used:
balloc
bfree
Other objects included:
struct Bimage
Generated by bdoc.pl on Mon Jun 15 11:47:26 2009
Back to the Bsoft home