1mlib_GraphicsFillRectangle(m3eMdLiIaBL)ib Library Funmcltiibo_nGsraphicsFillRectangle(3MLIB)
2
3
4
6 mlib_GraphicsFillRectangle, mlib_GraphicsFillRectangle_8, mlib_Graph‐
7 icsFillRectangle_32, mlib_GraphicsFillRectangle_X_8, mlib_GraphicsFill‐
8 Rectangle_X_32, mlib_GraphicsFillRectangle_B_8, mlib_GraphicsFillRect‐
9 angle_B_32 - draw filled rectangle
10
12 cc [ flag... ] file... -lmlib [ library... ]
13 #include <mlib.h>
14
15 mlib_status mlib_GraphicsFillRectangle_8(mlib_image *buffer, mlib_s16 x,
16 mlib_s16 y, mlib_s32 w, mlib_s32 h, mlib_s32 c);
17
18
19 mlib_status mlib_GraphicsFillRectangle_32(mlib_image *buffer, mlib_s16 x,
20 mlib_s16 y, mlib_s32 w, mlib_s32 h, mlib_s32 c);
21
22
23 mlib_status mlib_GraphicsFillRectangle_X_8(mlib_image *buffer, mlib_s16 x,
24 mlib_s16 y, mlib_s32 w, mlib_s32 h, mlib_s32 c, mlib_s32 c2);
25
26
27 mlib_status mlib_GraphicsFillRectangle_X_32(mlib_image *buffer,
28 mlib_s16 x, mlib_s16 y, mlib_s32 w, mlib_s32 h, mlib_s32 c,
29 mlib_s32 c2);
30
31
32 mlib_status mlib_GraphicsFillRectangle_B_8(mlib_image *buffer, mlib_s16 x,
33 mlib_s16 y, mlib_s32 w, mlib_s32 h, mlib_s32 c, mlib_s32 a);
34
35
36 mlib_status mlib_GraphicsFillRectangle_B_32(mlib_image *buffer,
37 mlib_s16 x, mlib_s16 y, mlib_s32 w, mlib_s32 h, mlib_s32 c,
38 mlib_s32 a);
39
40
42 Each of the mlib_GraphicsFillRectangle_*() functions draws a filled
43 rectangle with the upper-left corner at (x, y), width w, and height h.
44
45
46 Each of the mlib_GraphicsFillRectangle_X_*() functions draws a filled
47 rectangle in Xor mode as follows:
48
49 data[x,y] ^= c ^ c2
50
51
52
53 Each of the mlib_GraphicsFillRectangle_B_*() functions draws a filled
54 rectangle with alpha blending as follows:
55
56 data[x,y] = (data[x,y] * (255 - a) + c * a) / 255
57
58
60 Each of the functions takes some of the following arguments:
61
62 buffer Pointer to the image into which the function is drawing.
63
64
65 x X coordinate of the upper-left corner of the rectangle.
66
67
68 y Y coordinate of the upper-left corner of the rectangle.
69
70
71 w Width of the rectangle.
72
73
74 h Height of the rectangle.
75
76
77 c Color used in the drawing.
78
79
80 c2 Alternation color.
81
82
83 a Alpha value for blending. 0 ≤ a ≤ 255.
84
85
87 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
88 returns MLIB_FAILURE.
89
91 See attributes(5) for descriptions of the following attributes:
92
93
94
95
96 ┌─────────────────────────────┬─────────────────────────────┐
97 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
98 ├─────────────────────────────┼─────────────────────────────┤
99 │Interface Stability │Committed │
100 ├─────────────────────────────┼─────────────────────────────┤
101 │MT-Level │MT-Safe │
102 └─────────────────────────────┴─────────────────────────────┘
103
105 mlib_GraphicsDrawRectangle(3MLIB), attributes(5)
106
107
108
109SunOS 5.11 2 Mar 2007 mlib_GraphicsFillRectangle(3MLIB)