1mlib_ImageScalarBlend_Inp(3mMeLdIiBa)Lib Library Funcmtliiobn_sImageScalarBlend_Inp(3MLIB)
2
3
4
6 mlib_ImageScalarBlend_Inp - image blending with scalar, in place
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageScalarBlend_Inp(mlib_image *src1dst,
13 const mlib_image *src2, const mlib_s32 *alpha);
14
15
17 The mlib_ImageScalarBlend_Inp() function blends the first and second
18 source images by adding each of their scaled pixels in place. The first
19 source image is scaled by the scalar a, and the second source image is
20 inverse scaled by (1 - a).
21
22
23 It uses the following equation:
24
25 src1dst[x][y][i] = a[i]*src1dst[x][y][i] +
26 (1 - a[i])*src2[x][y][i]
27
28
30 The function takes the following arguments:
31
32 src1dst Pointer to first source and destination image.
33
34
35 src2 Pointer to second source image.
36
37
38 alpha Scalar blending factor. The a value equals (alpha *
39 2**(-31)). alpha[i] contains the blending factor for channel
40 i.
41
42
44 The function returns MLIB_SUCCESS if successful. Otherwise it returns
45 MLIB_FAILURE.
46
48 See attributes(5) for descriptions of the following attributes:
49
50
51
52
53 ┌─────────────────────────────┬─────────────────────────────┐
54 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
55 ├─────────────────────────────┼─────────────────────────────┤
56 │Interface Stability │Committed │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │MT-Level │MT-Safe │
59 └─────────────────────────────┴─────────────────────────────┘
60
62 mlib_ImageScalarBlend(3MLIB), mlib_ImageScalarBlend_Fp(3MLIB),
63 mlib_ImageScalarBlend_Fp_Inp(3MLIB), attributes(5)
64
65
66
67SunOS 5.11 2 Mar 2007 mlib_ImageScalarBlend_Inp(3MLIB)