1mlib_ImageBlendRGBA2BGRA(3MmLeIdBi)aLib Library Functmiloinbs_ImageBlendRGBA2BGRA(3MLIB)
2
3
4
6 mlib_ImageBlendRGBA2BGRA - image blending and channel reordering
7
9 cc [ flag... ] file... -lmlib [ library... ]
10 #include <mlib.h>
11
12 mlib_status mlib_ImageBlendRGBA2BGRA(mlib_image *dst,
13 const mlib_image *src);
14
15
17 The mlib_ImageBlendRGBA2BGRA() function blends the source image of the
18 RGBA format into the destination image of the BGRA format.
19
20
21 The image type must be MLIB_BYTE. The source and destination images
22 must contain four channels.
23
24
25 It uses the following equation:
26
27 Cd = Cs*As + Cd*(1 - As)
28 Ad = Ad
29
30
31
32 where, Cs and Cd are the RGB color components of the source and desti‐
33 nation images, respectively. As and Ad are the alpha components of the
34 source and destination images, respectively.
35
37 The function takes the following arguments:
38
39 dst Pointer to destination image.
40
41
42 src Pointer to source image.
43
44
46 The function returns MLIB_SUCCESS if successful. Otherwise it returns
47 MLIB_FAILURE.
48
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
64 mlib_ImageBlendRGBA2ARGB(3MLIB), mlib_ImageBlend_OMSA_SA_Inp(3MLIB),
65 attributes(5)
66
67
68
69SunOS 5.11 2 Mar 2007 mlib_ImageBlendRGBA2BGRA(3MLIB)