1mlib_GraphicsDrawEllipse(3MmLeIdBi)aLib Library Functmiloinbs_GraphicsDrawEllipse(3MLIB)
2
3
4

NAME

6       mlib_GraphicsDrawEllipse,   mlib_GraphicsDrawEllipse_8,  mlib_Graphics‐
7       DrawEllipse_32,      mlib_GraphicsDrawEllipse_X_8,       mlib_Graphics‐
8       DrawEllipse_X_32,      mlib_GraphicsDrawEllipse_A_8,     mlib_Graphics‐
9       DrawEllipse_A_32,     mlib_GraphicsDrawEllipse_B_8,      mlib_Graphics‐
10       DrawEllipse_B_32,     mlib_GraphicsDrawEllipse_AB_8,     mlib_Graphics‐
11       DrawEllipse_AB_32 - draw ellipse
12

SYNOPSIS

14       cc [ flag... ] file... -lmlib [ library... ]
15       #include <mlib.h>
16
17       mlib_status mlib_GraphicsDrawEllipse_8(mlib_image *buffer, mlib_s16 x,
18            mlib_s16 y, mlib_s32 a, mlib_s32 b, mlib_f32 t, mlib_s32 c);
19
20
21       mlib_status mlib_GraphicsDrawEllipse_32(mlib_image *buffer, mlib_s16 x,
22            mlib_s16 y, mlib_s32 a, mlib_s32 b, mlib_f32 t, mlib_s32 c);
23
24
25       mlib_status mlib_GraphicsDrawEllipse_X_8(mlib_image *buffer, mlib_s16 x,
26            mlib_s16 y, mlib_s32 a, mlib_s32 b, mlib_f32 t, mlib_s32 c,
27            mlib_s32 c2);
28
29
30       mlib_status mlib_GraphicsDrawEllipse_X_32(mlib_image *buffer, mlib_s16 x,
31            mlib_s16 y, mlib_s32 a, mlib_s32 b, mlib_f32 t, mlib_s32 c,
32            mlib_s32 c2);
33
34
35       mlib_status mlib_GraphicsDrawEllipse_A_8(mlib_image *buffer, mlib_s16 x,
36            mlib_s16 y, mlib_s32 a, mlib_s32 b, mlib_f32 t, mlib_s32 c);
37
38
39       mlib_status mlib_GraphicsDrawEllipse_A_32(mlib_image *buffer, mlib_s16 x,
40            mlib_s16 y, mlib_s32 a, mlib_s32 b, mlib_f32 t, mlib_s32 c);
41
42
43       mlib_status mlib_GraphicsDrawEllipse_B_8(mlib_image *buffer, mlib_s16 x,
44            mlib_s16 y, mlib_s32 a, mlib_s32 b, mlib_f32 t, mlib_s32 c,
45            mlib_s32 alpha);
46
47
48       mlib_status mlib_GraphicsDrawEllipse_B_32(mlib_image *buffer, mlib_s16 x,
49            mlib_s16 y, mlib_s32 a, mlib_s32 b, mlib_f32 t, mlib_s32 c,
50            mlib_s32 alpha);
51
52
53       mlib_status mlib_GraphicsDrawEllipse_AB_8(mlib_image *buffer, mlib_s16 x,
54            mlib_s16 y, mlib_s32 a, mlib_s32 b, mlib_f32 t, mlib_s32 c,
55            mlib_s32 alpha);
56
57
58       mlib_status mlib_GraphicsDrawEllipse_AB_32(mlib_image *buffer, mlib_s16 x,
59            mlib_s16 y, mlib_s32 a, mlib_s32 b, mlib_f32 t, mlib_s32 c,
60            mlib_s32 alpha);
61
62

DESCRIPTION

64       Each of the mlib_GraphicsDrawEllipse_*()  functions  draws  an  ellipse
65       with  the center at (x, y), major semiaxis a, and minor semiaxis b. The
66       angle of the major semiaxis is t counterclockwise from the X axis.
67
68
69       Each of the mlib_GraphicsDrawEllipse_X_*() functions draws  an  ellipse
70       in Xor mode as follows:
71
72             data[x,y] ^= c ^ c2
73
74
75
76       Each  of  the mlib_GraphicsDrawEllipse_A_*() functions draws an ellipse
77       with antialiasing.
78
79
80       Each of the mlib_GraphicsDrawEllipse_B_*() functions draws  an  ellipse
81       with alpha blending as follows:
82
83             data[x,y] = (data[x,y] * (255 - alpha) + c * alpha) / 255
84
85
86
87       Each  of  the mlib_GraphicsDrawEllipse_A_*() functions draws an ellipse
88       with antialiasing and alpha blending.
89

PARAMETERS

91       Each of the functions takes some of the following arguments:
92
93       buffer    Pointer to the image into which the function is drawing.
94
95
96       x         X coordinate of the center.
97
98
99       y         Y coordinate of the center.
100
101
102       a         Major semiaxis of the ellipse.
103
104
105       b         Minor semiaxis of the ellipse.
106
107
108       t         Angle of major semiaxis in radians.
109
110
111       c         Color used in the drawing.
112
113
114       c2        Alternation color.
115
116
117       alpha     Alpha value for blending. 0 ≤ alpha ≤ 255.
118
119

RETURN VALUES

121       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
122       returns MLIB_FAILURE.
123

ATTRIBUTES

125       See attributes(5) for descriptions of the following attributes:
126
127
128
129
130       ┌─────────────────────────────┬─────────────────────────────┐
131       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
132       ├─────────────────────────────┼─────────────────────────────┤
133       │Interface Stability          │Committed                    │
134       ├─────────────────────────────┼─────────────────────────────┤
135       │MT-Level                     │MT-Safe                      │
136       └─────────────────────────────┴─────────────────────────────┘
137

SEE ALSO

139       mlib_GraphicsDrawArc(3MLIB),            mlib_GraphicsDrawCircle(3MLIB),
140       attributes(5)
141
142
143
144SunOS 5.11                        2 Mar 2007   mlib_GraphicsDrawEllipse(3MLIB)
Impressum