1mlib_ImageMulAlpha_Fp(3MLIBm)ediaLib Library Functionmslib_ImageMulAlpha_Fp(3MLIB)
2
3
4
6 mlib_ImageMulAlpha_Fp - alpha channel multiplication
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageMulAlpha_Fp(mlib_image *dst, const mlib_image *src,
13 mlib_s32 cmask);
14
15
17 The mlib_ImageMulAlpha_Fp() function multiplies floating-point color
18 channels by the alpha channel on a pixel by pixel basis.
19
20
21 It uses the following equation:
22
23 dst[x][y][c] = src[x][y][c] * src[x][y][a]
24
25
26
27 where c and a are the indices for the color channels and the alpha
28 channel, respectively, so c != a.
29
31 The function takes the following arguments:
32
33 dst Pointer to destination image.
34
35
36 src Pointer to source image.
37
38
39 cmask Channel mask to indicate the alpha channel. Each bit of the
40 mask represents a channel in the image. The channel corre‐
41 sponding to the 1 bit of cmask is the alpha channel.
42
43
45 The function returns MLIB_SUCCESS if successful. Otherwise it returns
46 MLIB_FAILURE.
47
49 See attributes(5) for descriptions of the following attributes:
50
51
52
53
54 ┌─────────────────────────────┬─────────────────────────────┐
55 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
56 ├─────────────────────────────┼─────────────────────────────┤
57 │Interface Stability │Committed │
58 ├─────────────────────────────┼─────────────────────────────┤
59 │MT-Level │MT-Safe │
60 └─────────────────────────────┴─────────────────────────────┘
61
63 mlib_ImageMulAlpha(3MLIB), mlib_ImageMulAlpha_Inp(3MLIB), mlib_ImageMu‐
64 lAlpha_Fp_Inp(3MLIB), attributes(5)
65
66
67
68SunOS 5.11 2 Mar 2007 mlib_ImageMulAlpha_Fp(3MLIB)