1mlib_GraphicsFillCircle(3MLmIeBd)iaLib Library Functimolnisb_GraphicsFillCircle(3MLIB)
2
3
4

NAME

6       mlib_GraphicsFillCircle,  mlib_GraphicsFillCircle_8, mlib_GraphicsFill‐
7       Circle_32,  mlib_GraphicsFillCircle_X_8,  mlib_GraphicsFillCircle_X_32,
8       mlib_GraphicsFillCircle_A_8,  mlib_GraphicsFillCircle_A_32, mlib_Graph‐
9       icsFillCircle_B_8, mlib_GraphicsFillCircle_B_32,  mlib_GraphicsFillCir‐
10       cle_AB_8, mlib_GraphicsFillCircle_AB_32 - draw filled circle
11

SYNOPSIS

13       cc [ flag... ] file... -lmlib [ library... ]
14       #include <mlib.h>
15
16       mlib_status mlib_GraphicsFillCircle_8(mlib_image *buffer, mlib_s16 x,
17            mlib_s16 y, mlib_s32 r, mlib_s32 c);
18
19
20       mlib_status mlib_GraphicsFillCircle_32(mlib_image *buffer, mlib_s16 x,
21            mlib_s16 y, mlib_s32 r, mlib_s32 c);
22
23
24       mlib_status mlib_GraphicsFillCircle_X_8(mlib_image *buffer, mlib_s16 x,
25            mlib_s16 y, mlib_s32 r, mlib_s32 c, mlib_s32 c2);
26
27
28       mlib_status mlib_GraphicsFillCircle_X_32(mlib_image *buffer, mlib_s16 x,
29            mlib_s16 y, mlib_s32 r, mlib_s32 c, mlib_s32 c2);
30
31
32       mlib_status mlib_GraphicsFillCircle_A_8(mlib_image *buffer, mlib_s16 x,
33            mlib_s16 y, mlib_s32 r, mlib_s32 c);
34
35
36       mlib_status mlib_GraphicsFillCircle_A_32(mlib_image *buffer, mlib_s16 x,
37            mlib_s16 y, mlib_s32 r, mlib_s32 c);
38
39
40       mlib_status mlib_GraphicsFillCircle_B_8(mlib_image *buffer, mlib_s16 x,
41            mlib_s16 y, mlib_s32 r, mlib_s32 c, mlib_s32 a);
42
43
44       mlib_status mlib_GraphicsFillCircle_B_32(mlib_image *buffer, mlib_s16 x,
45            mlib_s16 y, mlib_s32 r, mlib_s32 c, mlib_s32 a);
46
47
48       mlib_status mlib_GraphicsFillCircle_AB_8(mlib_image *buffer, mlib_s16 x,
49            mlib_s16 y, mlib_s32 r, mlib_s32 c, mlib_s32 a);
50
51
52       mlib_status mlib_GraphicsFillCircle_AB_32(mlib_image *buffer, mlib_s16 x,
53            mlib_s16 y, mlib_s32 r, mlib_s32 c, mlib_s32 a);
54
55

DESCRIPTION

57       Each of the mlib_GraphicsFillCircle_*() functions draws a filled circle
58       with the center at (x, y) and radius r.
59
60
61       Each of the mlib_GraphicsFillCircle_X_*() functions draws a filled cir‐
62       cle in Xor mode as follows:
63
64             data[x,y] ^= c ^ c2
65
66
67
68       Each of the mlib_GraphicsFillCircle_A_*() functions draws a filled cir‐
69       cle with antialiasing.
70
71
72       Each of the mlib_GraphicsFillCircle_B_*() functions draws a filled cir‐
73       cle with alpha blending as follows:
74
75             data[x,y] = (data[x,y] * (255 - a) + c * a) / 255
76
77
78
79       Each  of  the  mlib_GraphicsFillCircle_AB_*()  functions draws a filled
80       circle with antialiasing and alpha blending.
81

PARAMETERS

83       Each of the functions takes some of the following arguments:
84
85       buffer    Pointer to the image into which the function is drawing.
86
87
88       x         X coordinate of the center.
89
90
91       y         Y coordinate of the center.
92
93
94       r         Radius of the arc.
95
96
97       c         Color used in the drawing.
98
99
100       c2        Alternation color.
101
102
103       a         Alpha value for blending. 0 ≤ a ≤ 255.
104
105

RETURN VALUES

107       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
108       returns MLIB_FAILURE.
109

ATTRIBUTES

111       See attributes(5) for descriptions of the following attributes:
112
113
114
115
116       ┌─────────────────────────────┬─────────────────────────────┐
117       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
118       ├─────────────────────────────┼─────────────────────────────┤
119       │Interface Stability          │Committed                    │
120       ├─────────────────────────────┼─────────────────────────────┤
121       │MT-Level                     │MT-Safe                      │
122       └─────────────────────────────┴─────────────────────────────┘
123

SEE ALSO

125       mlib_GraphicsFillArc(3MLIB),           mlib_GraphicsFillEllipse(3MLIB),
126       attributes(5)
127
128
129
130SunOS 5.11                        2 Mar 2007    mlib_GraphicsFillCircle(3MLIB)
Impressum