1mlib_GraphicsDrawPointSet(3mMeLdIiBa)Lib Library Funcmtliiobn_sGraphicsDrawPointSet(3MLIB)
2
3
4

NAME

6       mlib_GraphicsDrawPointSet,  mlib_GraphicsDrawPointSet_8, mlib_Graphics‐
7       DrawPointSet_32,   mlib_GraphicsDrawPointSet_X_8,    mlib_GraphicsDraw‐
8       PointSet_X_32,     mlib_GraphicsDrawPointSet_B_8,    mlib_GraphicsDraw‐
9       PointSet_B_32,   mlib_GraphicsDrawPolypoint_8,   mlib_GraphicsDrawPoly‐
10       point_32,     mlib_GraphicsDrawPolypoint_X_8,    mlib_GraphicsDrawPoly‐
11       point_X_32,   mlib_GraphicsDrawPolypoint_B_8,    mlib_GraphicsDrawPoly‐
12       point_B_32 - draw a set of points
13

SYNOPSIS

15       cc [ flag... ] file... -lmlib [ library... ]
16       #include <mlib.h>
17
18       mlib_status mlib_GraphicsDrawPointSet_8(mlib_image *buffer,
19            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
20
21
22       mlib_status mlib_GraphicsDrawPointSet_32(mlib_image *buffer,
23            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
24
25
26       mlib_status mlib_GraphicsDrawPointSet_X_8(mlib_image *buffer,
27            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
28            mlib_s32 c, mlib_s32 c2);
29
30
31       mlib_status mlib_GraphicsDrawPointSet_X_32(mlib_image *buffer,
32            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints,
33            mlib_s32 c, mlib_s32 c2);
34
35
36       mlib_status mlib_GraphicsDrawPointSet_B_8(mlib_image *buffer,
37            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
38            mlib_s32 a);
39
40
41       mlib_status mlib_GraphicsDrawPointSet_B_32(mlib_image *buffer,
42            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
43            mlib_s32 a);
44
45
46       mlib_status mlib_GraphicsDrawPolypoint_8(mlib_image *buffer,
47            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
48
49
50       mlib_status mlib_GraphicsDrawPolypoint_32(mlib_image *buffer,
51            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c);
52
53
54       mlib_status mlib_GraphicsDrawPolypoint_X_8(mlib_image *buffer,
55            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
56            mlib_s32 c2);
57
58
59       mlib_status mlib_GraphicsDrawPolypoint_X_32(mlib_image *buffer,
60            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
61            mlib_s32 c2);
62
63
64       mlib_status mlib_GraphicsDrawPolypoint_B_8(mlib_image *buffer,
65            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
66            mlib_s32 c2);
67
68
69       mlib_status mlib_GraphicsDrawPolypoint_B_32(mlib_image *buffer,
70            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 npoints, mlib_s32 c,
71            mlib_s32 c2);
72
73

DESCRIPTION

75       Each  of  the  mlib_GraphicsDrawPointSet_*() and mlib_GraphicsDrawPoly‐
76       point_*() functions draws a set of points at (x1,y1), (x2,y2), ..., and
77       (xn,yn).
78
79
80       Each  of the mlib_GraphicsDrawPointSet_X_*() and mlib_GraphicsDrawPoly‐
81       point_X_*() functions draws a set of points at (x1,y1),  (x2,y2),  ...,
82       and (xn,yn) in Xor mode as follows:
83
84             data[x,y] ^= c ^ c2
85
86
87
88       Each  of the mlib_GraphicsDrawPointSet_B_*() and mlib_GraphicsDrawPoly‐
89       point_B_*() functions draws a set of points at (x1,y1),  (x2,y2),  ...,
90       and (xn,yn) with alpha blending as follows:
91
92             data[x,y] = (data[x,y] * (255 - a) + c * a) / 255
93
94
95
96       The   mlib_GraphicsDrawPolypoint_*()   functions  are  aliases  of  the
97       mlib_GraphicsDrawPointSet_*() functions.
98

PARAMETERS

100       Each of the functions takes some of the following arguments:
101
102       buffer     Pointer to the image into which the function is drawing.
103
104
105       x          Pointer to array of X coordinates of the points.
106
107
108       y          Pointer to array of Y coordinates of the points.
109
110
111       npoints    Number of points in the arrays.
112
113
114       c          Color used in the drawing.
115
116
117       c2         Alternation color.
118
119
120       a          Alpha value for blending. 0 ≤ a ≤ 255.
121
122

RETURN VALUES

124       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
125       returns MLIB_FAILURE.
126

ATTRIBUTES

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

SEE ALSO

142       mlib_GraphicsDrawPoint(3MLIB), attributes(5)
143
144
145
146SunOS 5.11                        2 Mar 2007  mlib_GraphicsDrawPointSet(3MLIB)
Impressum