1mlib_GraphicsDrawPoint(3MLImBe)diaLib Library Functiomnlsib_GraphicsDrawPoint(3MLIB)
2
3
4

NAME

6       mlib_GraphicsDrawPoint,   mlib_GraphicsDrawPoint_8,  mlib_GraphicsDraw‐
7       Point_32,   mlib_GraphicsDrawPoint_X_8,    mlib_GraphicsDrawPoint_X_32,
8       mlib_GraphicsDrawPoint_B_8, mlib_GraphicsDrawPoint_B_32 - draw point
9

SYNOPSIS

11       cc [ flag... ] file... -lmlib [ library... ]
12       #include <mlib.h>
13
14       mlib_status mlib_GraphicsDrawPoint_8(mlib_image *buffer, mlib_s16 x,
15            mlib_s16 y, mlib_s32 c);
16
17
18       mlib_status mlib_GraphicsDrawPoint_32(mlib_image *buffer, mlib_s16 x,
19            mlib_s16 y, mlib_s32 c);
20
21
22       mlib_status mlib_GraphicsDrawPoint_X_8(mlib_image *buffer, mlib_s16 x,
23            mlib_s16 y, mlib_s32 c, mlib_s32 c2);
24
25
26       mlib_status mlib_GraphicsDrawPoint_X_32(mlib_image *buffer, mlib_s16 x,
27            mlib_s16 y, mlib_s32 c, mlib_s32 c2);
28
29
30       mlib_status mlib_GraphicsDrawPoint_B_8(mlib_image *buffer, mlib_s16 x,
31            mlib_s16 y, mlib_s32 c, mlib_s32 a);
32
33
34       mlib_status mlib_GraphicsDrawPoint_B_32(mlib_image *buffer, mlib_s16 x,
35            mlib_s16 y, mlib_s32 c, mlib_s32 a);
36
37

DESCRIPTION

39       Each of the mlib_GraphicsDrawPoint_*() functions draws a point at (x,y)
40       in color c.
41
42
43       Each of the mlib_GraphicsDrawPoint_X_*() functions  draws  a  point  at
44       (x,y) in Xor mode as follows:
45
46             data[x,y] ^= c ^ c2
47
48
49
50       Each  of  the  mlib_GraphicsDrawPoint_B_*()  functions draws a point at
51       (x,y) with alpha blending as follows:
52
53             data[x,y] = (data[x,y] * (255 - a) + c * a) / 255
54
55

PARAMETERS

57       Each of the functions takes some of the following arguments:
58
59       buffer    Pointer to the image into which the function is drawing.
60
61
62       x         X coordinate of the point.
63
64
65       y         Y coordinate of the point.
66
67
68       c         Color used in the drawing.
69
70
71       c2        Alternation color.
72
73
74       a         Alpha value for blending. 0 ≤ a ≤ 255.
75
76

RETURN VALUES

78       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
79       returns MLIB_FAILURE.
80

ATTRIBUTES

82       See attributes(5) for descriptions of the following attributes:
83
84
85
86
87       ┌─────────────────────────────┬─────────────────────────────┐
88       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
89       ├─────────────────────────────┼─────────────────────────────┤
90       │Interface Stability          │Committed                    │
91       ├─────────────────────────────┼─────────────────────────────┤
92       │MT-Level                     │MT-Safe                      │
93       └─────────────────────────────┴─────────────────────────────┘
94

SEE ALSO

96       mlib_GraphicsDrawPointSet(3MLIB), attributes(5)
97
98
99
100SunOS 5.11                        2 Mar 2007     mlib_GraphicsDrawPoint(3MLIB)
Impressum