1mlib_ImageBlend1_Fp_Inp(3MLmIeBd)iaLib Library Functimolnisb_ImageBlend1_Fp_Inp(3MLIB)
2
3
4

NAME

6       mlib_ImageBlend1_Fp_Inp - blend with an alpha image
7

SYNOPSIS

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

DESCRIPTION

17       The  mlib_ImageBlend1_Fp_Inp()  function blends two images together, in
18       place, on a pixel-by-pixel basis using an alpha image,  when  alpha  is
19       also on a pixel basis. The alpha image can be a single-channel image or
20       have the same number of channels as the source and destination images.
21
22
23       It uses the following equation when the alpha image is a single-channel
24       image:
25
26         src1dst[x][y][i] = alpha[x][y][0]*src1dst[x][y][i] +
27                            (1 - alpha[x][y][0])*src2[x][y][i]
28
29
30
31       It uses the following equation when the alpha image has the same number
32       of channels as the source and destination images:
33
34         src1dst[x][y][i] = alpha[x][y][i]*src1dst[x][y][i] +
35                            (1 - alpha[x][y][i])*src2[x][y][i]
36
37

PARAMETERS

39       The function takes the following arguments:
40
41       src1dst    Pointer to first source and destination image.
42
43
44       src2       Pointer to second source image.
45
46
47       alpha      Alpha image used to control blending.  The  pixels  in  this
48                  image should have values in the range of [0.0,1.0].
49
50

RETURN VALUES

52       The  function  returns MLIB_SUCCESS if successful. Otherwise it returns
53       MLIB_FAILURE.
54

ATTRIBUTES

56       See attributes(5) for descriptions of the following attributes:
57
58
59
60
61       ┌─────────────────────────────┬─────────────────────────────┐
62       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
63       ├─────────────────────────────┼─────────────────────────────┤
64       │Interface Stability          │Committed                    │
65       ├─────────────────────────────┼─────────────────────────────┤
66       │MT-Level                     │MT-Safe                      │
67       └─────────────────────────────┴─────────────────────────────┘
68

SEE ALSO

70       mlib_ImageBlend(3MLIB),     mlib_ImageBlend_Fp(3MLIB),      mlib_Image‐
71       Blend1_Inp(3MLIB),      mlib_ImageBlend2_Fp_Inp(3MLIB),     mlib_Image‐
72       Blend2_Inp(3MLIB), attributes(5)
73
74
75
76SunOS 5.11                        2 Mar 2007    mlib_ImageBlend1_Fp_Inp(3MLIB)
Impressum