1mlib_ImageMulAlpha_Fp_Inp(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageMulAlpha_Fp_Inp(3MLIB)
2
3
4
6 mlib_ImageMulAlpha_Fp_Inp - alpha channel multiplication
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageMulAlpha_Fp_Inp(mlib_image *srcdst, mlib_s32 cmask);
13
14
16 The mlib_ImageMulAlpha_Fp_Inp() function multiplies floating-point
17 color channels by the alpha channel on a pixel by pixel basis, in
18 place.
19
20
21 It uses the following equation:
22
23 srcdst[x][y][c] = srcdst[x][y][c] * srcdst[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 srcdst Pointer to source and destination image.
34
35
36 cmask Channel mask to indicate the alpha channel. Each bit of the
37 mask represents a channel in the image. The channel corre‐
38 sponding to the 1 bit of cmask is the alpha channel.
39
40
42 The function returns MLIB_SUCCESS if successful. Otherwise it returns
43 MLIB_FAILURE.
44
46 See attributes(5) for descriptions of the following attributes:
47
48
49
50
51 ┌─────────────────────────────┬─────────────────────────────┐
52 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
53 ├─────────────────────────────┼─────────────────────────────┤
54 │Interface Stability │Committed │
55 ├─────────────────────────────┼─────────────────────────────┤
56 │MT-Level │MT-Safe │
57 └─────────────────────────────┴─────────────────────────────┘
58
60 mlib_ImageMulAlpha(3MLIB), mlib_ImageMulAlpha_Inp(3MLIB), mlib_ImageMu‐
61 lAlpha_Fp(3MLIB), attributes(5)
62
63
64
65SunOS 5.11 2 Mar 2007 mlib_ImageMulAlpha_Fp_Inp(3MLIB)