1mlib_ImageScalarBlend_Fp_Inmpe(d3iMaLLIiBb)Library Fmulnicbt_iIomnasgeScalarBlend_Fp_Inp(3MLIB)
2
3
4
6 mlib_ImageScalarBlend_Fp_Inp - image blending with scalar
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageScalarBlend_Fp_Inp(mlib_image *src1dst,
13 const mlib_image *src2, const mlib_d64 *alpha);
14
15
17 The mlib_ImageScalarBlend_Fp_Inp() function blends the first and second
18 floating-point source images by adding each of their scaled pixels in
19 place. The first source image is scaled by the scalar a, and the second
20 source image is 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 which
39 should be in the [0.0, 1.0] range. alpha[i] contains the
40 blending factor for channel 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_Inp(3MLIB), attributes(5)
64
65
66
67SunOS 5.11 2 Mar 2007mlib_ImageScalarBlend_Fp_Inp(3MLIB)