MGL_putMonoImage

Draw a monochrome bitmap at the specified location.

Declaration

void MGLAPI MGL_putMonoImage(
MGLDC *dc,
int x,
int y,
int width,
int byteWidth,
int height,
void *image)

Prototype In

mgraph.h

Parameters

dc | Device context to draw bitmap on
x | x coordinate to draw bitmap at
y | y coordinate to draw bitmap at
width | Width of the bitmap to draw in pixels
byteWidth | Width of the bitmap image in bytes
height | Height of the bitmap in scanlines
image | Pointer to the buffer holding the bitmap

Description

This function draws a monochrome bitmap in the current foreground color on the current device context. Where a bit is a 1 in the bitmap definition, a pixel is plotted in the foreground color, where a bit is a 0 the original pixels are left alone. This function can be used to implement fast hardware pixel masking for drawing fast transparent bitmaps on devices that do not have a native hardware transparent BitBlt function.

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