Supported Browsers Home   
MGL_computePixelAddr Previous   
MGL_copyIntoRegion Next   
External Functions Up   

MGL_copyBitmapToBuffer

Copies a section of a bitmap to an offscreen buffer

Declaration

void MGLAPI MGL_copyBitmapToBuffer(
    bitmap_t *bitmap,
    int left,
    int top,
    int right,
    int bottom,
    int dstLeft,
    int dstTop,
    MGLBUF *buf)

Prototype In

mgraph.h

Parameters

bitmap

Bitmap to blit from

left

Left coordinate in device context to blit from

top

Top coordinate in device context to blit from

right

Right coordinate in device context to blit from

bottom

Bottom coordinate in device context to blit from

dstLeft

Left coordinate in buffer to blit to

dstTop

Top coordinate in buffer to blit to

buf

MGL buffer to blit to

 

Description

This function is used to copy bitmap data from a lightweight system memory bitmap into an offscreen buffer. The information copied is clipped to the full dimensions of the buffer.

See Also

MGL_copyToBuffer, MGL_putBuffer

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