| Home
| Previous
| Next
| Up

MGL_setDitherMode

Sets the current dithering mode for all blitting operations.

Declaration

void MGLAPI MGL_setDitherMode(
int mode)

Prototype In

mgraph.h

Parameters

mode | New dithering mode to make active

Description

This function sets the current dithering mode used when blitting RGB images to 8, 15 and 16 bits per pixel device context. If dithering is enabled, the blit operation will dither the resulting image to produce the best quality. When dithering is disabled, the blit operation uses the closest color which has less quality but is faster.

Note: The closest color method is fastest when the destination device context is a 15 or 16 bits per pixel bitmap. However when the destination is an 8 bits per pixel device context, the dithering mode will usually be faster.

Note: Dithering is on by default in the MGL.

See Also

MGL_getDitherMode

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