MGL_halfTonePixel565

Compute color for an 565 format RGB pixel using a halftone dither

Declaration

ushort MGLAPI MGL_halfTonePixel565(
    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 565 format pixel color

Description

This function computes the color of an RGB 565 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

MGL_halfTonePixel555

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com