1mlib_GraphicsDrawCircle(3MLmIeBd)iaLib Library Functimolnisb_GraphicsDrawCircle(3MLIB)
2
3
4
6 mlib_GraphicsDrawCircle, mlib_GraphicsDrawCircle_8, mlib_GraphicsDraw‐
7 Circle_32, mlib_GraphicsDrawCircle_X_8, mlib_GraphicsDrawCircle_X_32,
8 mlib_GraphicsDrawCircle_A_8, mlib_GraphicsDrawCircle_A_32, mlib_Graph‐
9 icsDrawCircle_B_8, mlib_GraphicsDrawCircle_B_32, mlib_GraphicsDrawCir‐
10 cle_AB_8, mlib_GraphicsDrawCircle_AB_32 - draw circle
11
13 cc [ flag... ] file... -lmlib [ library... ]
14 #include <mlib.h>
15
16 mlib_status mlib_GraphicsDrawCircle_8(mlib_image *buffer, mlib_s16 x,
17 mlib_s16 y, mlib_s32 r, mlib_s32 c);
18
19
20 mlib_status mlib_GraphicsDrawCircle_32(mlib_image *buffer, mlib_s16 x,
21 mlib_s16 y, mlib_s32 r, mlib_s32 c);
22
23
24 mlib_status mlib_GraphicsDrawCircle_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_GraphicsDrawCircle_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_GraphicsDrawCircle_A_8(mlib_image *buffer, mlib_s16 x,
33 mlib_s16 y, mlib_s32 r, mlib_s32 c);
34
35
36 mlib_status mlib_GraphicsDrawCircle_A_32(mlib_image *buffer, mlib_s16 x,
37 mlib_s16 y, mlib_s32 r, mlib_s32 c);
38
39
40 mlib_status mlib_GraphicsDrawCircle_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_GraphicsDrawCircle_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_GraphicsDrawCircle_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_GraphicsDrawCircle_AB_32(mlib_image *buffer, mlib_s16 x,
53 mlib_s16 y, mlib_s32 r, mlib_s32 c, mlib_s32 a);
54
55
57 Each of the mlib_GraphicsDrawCircle_*() functions draws a circle with
58 the center at (x, y) and radius r.
59
60
61 Each of the mlib_GraphicsDrawCircle_X_*() functions draws a circle in
62 Xor mode as follows:
63
64 data[x,y] ^= c ^ c2
65
66
67
68 Each of the mlib_GraphicsDrawCircle_A_*() functions draws a circle with
69 antialiasing.
70
71
72 Each of the mlib_GraphicsDrawCircle_B_*() functions draws a circle with
73 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_GraphicsDrawCircle_AB_*() functions draws a circle
80 with antialiasing and alpha blending.
81
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
107 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
108 returns MLIB_FAILURE.
109
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
125 mlib_GraphicsDrawArc(3MLIB), mlib_GraphicsDrawEllipse(3MLIB),
126 attributes(5)
127
128
129
130SunOS 5.11 2 Mar 2007 mlib_GraphicsDrawCircle(3MLIB)