mediaLib Library Functions mlibGraphicsDrawPoint(3MLIB)
NAME
mlibGraphicsDrawPoint, mlibGraphicsDrawPoint8,
mlibGraphicsDrawPoint32, mlibGraphicsDrawPointX8,
mlibGraphicsDrawPointX32, mlibGraphicsDrawPointB8,
mlibGraphicsDrawPointB32 - draw point
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibGraphicsDrawPoint8(mlibimage *buffer, mlibs16 x,
mlibs16 y, mlibs32 c);
mlibstatus mlibGraphicsDrawPoint32(mlibimage *buffer, mlibs16 x,
mlibs16 y, mlibs32 c);
mlibstatus mlibGraphicsDrawPointX8(mlibimage *buffer, mlibs16 x,
mlibs16 y, mlibs32 c, mlibs32 c2);
mlibstatus mlibGraphicsDrawPointX32(mlibimage *buffer, mlibs16 x,
mlibs16 y, mlibs32 c, mlibs32 c2);
mlibstatus mlibGraphicsDrawPointB8(mlibimage *buffer, mlibs16 x,
mlibs16 y, mlibs32 c, mlibs32 a);
mlibstatus mlibGraphicsDrawPointB32(mlibimage *buffer, mlibs16 x,
mlibs16 y, mlibs32 c, mlibs32 a);
DESCRIPTION
Each of the mlibGraphicsDrawPoint*() functions draws a
point at (x,y) in color c.
Each of the mlibGraphicsDrawPointX*() functions draws a
point at (x,y) in Xor mode as follows:
data[x,y] ^= c ^ c2
Each of the mlibGraphicsDrawPointB*() functions draws a
point at (x,y) with alpha blending as follows:
data[x,y] = (data[x,y] * (255 - a) ] c * a) / 255
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibGraphicsDrawPoint(3MLIB)
PARAMETERS
Each of the functions takes some of the following arguments:
buffer Pointer to the image into which the function is
drawing.
x X coordinate of the point.
y Y coordinate of the point.
c Color used in the drawing.
c2 Alternation color.
a Alpha value for blending. 0 < a < 255.
RETURN VALUES
Each of the functions returns MLIBSUCES if successful.
Otherwise it returns MLIBFAILURE.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibGraphicsDrawPointSet(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|