|
|
|
|
MGL_halfTonePixel555
Compute color for an 555 format RGB pixel using a halftone dither
Declaration
ushort MGLAPI MGL_halfTonePixel555(
int x,
int y,
uchar R,
uchar G,
uchar B)
Prototype In
mgraph.h
Parameters
x |
x coordinate of pixel (need only be relative) |
y |
y coordinate of pixel (need only be relative) |
R |
R value for pixel (8 bit components) |
G |
G value for pixel (8 bit components) |
B |
B value for pixel (8 bit components) |
Return Value
Packed RGB 555 format pixel color
Description
This function computes the color of an RGB 555 format pixel using a fast halftone dither algorithm. The resulting color is pre-packed into the correct framebuffer format as part of the dithering process.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com