1mlib_ImageScalarBlend_Fp(3MmLeIdBi)aLib Library Functmiloinbs_ImageScalarBlend_Fp(3MLIB)
2
3
4

NAME

6       mlib_ImageScalarBlend_Fp - image blending with scalar
7

SYNOPSIS

9       cc [ flag... ] file... -lmlib [ library... ]
10       #include <mlib.h>
11
12       mlib_status mlib_ImageScalarBlend_Fp(mlib_image *dst,
13            const mlib_image *src1, const mlib_image *src2, const mlib_d64 *alpha);
14
15

DESCRIPTION

17       The  mlib_ImageScalarBlend_Fp()  function  blends  the first and second
18       floating-point source images by adding each of their scaled pixels. The
19       first  source  image  is  scaled by the scalar a, and the second source
20       image is inverse scaled by (1 - a).
21
22
23       It uses the following equation:
24
25         dst[x][y][i] = a[i]*src1[x][y][i] + (1 - a[i])*src2[x][y][i]
26
27

PARAMETERS

29       The function takes the following arguments:
30
31       dst      Pointer to destination image.
32
33
34       src1     Pointer to first source image.
35
36
37       src2     Pointer to second source image.
38
39
40       alpha    Scalar blending factor. The a value equals alpha which  should
41                be  in  the  [0.0,  1.0] range. alpha[i] contains the blending
42                factor for channel i.
43
44

RETURN VALUES

46       The function returns MLIB_SUCCESS if successful. Otherwise  it  returns
47       MLIB_FAILURE.
48

ATTRIBUTES

50       See attributes(5) for descriptions of the following attributes:
51
52
53
54
55       ┌─────────────────────────────┬─────────────────────────────┐
56       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
57       ├─────────────────────────────┼─────────────────────────────┤
58       │Interface Stability          │Committed                    │
59       ├─────────────────────────────┼─────────────────────────────┤
60       │MT-Level                     │MT-Safe                      │
61       └─────────────────────────────┴─────────────────────────────┘
62

SEE ALSO

64       mlib_ImageScalarBlend(3MLIB),      mlib_ImageScalarBlend_Fp_Inp(3MLIB),
65       mlib_ImageScalarBlend_Inp(3MLIB), attributes(5)
66
67
68
69SunOS 5.11                        2 Mar 2007   mlib_ImageScalarBlend_Fp(3MLIB)
Impressum