MGL_stretchBuffer

Stretches an offscreen buffer to the specified rectangle.

Declaration

void MGLAPI MGL_stretchBuffer(
    MGLDC *dc,
    int dstLeft,
    int dstTop,
    int dstRight,
    int dstBottom,
    MGLBUF *buf,
    int op)

Prototype In

mgraph.h

Parameters

dc

Device context to copy bufer to

dstLeft

Left coordinate to stretch buffer to

dstTop

Top coordinate to stretch buffer to

dstRight

Right coordinate to stretch buffer to

dstBottom

Bottom coordinate to stretch buffer to

buf

Buffer to display

op

Write mode to use when drawing buffer

 

Description

Stretches an offscreen buffer to the destination rectangle on the specififed device context.

Note:    This function will fail if you attempt to copy a buffer to a device context that is not the device context that the original buffer was allocated for.

See Also

MGL_copyToBuffer, MGL_copyBitmapToBuffer, MGL_updateBufferCache, MGL_updateFromBufferCache, MGL_putBuffer, MGL_putBufferSection, MGL_putBufferSrcTrans, MGL_putBufferSrcTransSection, MGL_putBufferDstTrans, MGL_putBufferDstTransSection, MGL_putBufferPatt, MGL_putBufferPattSection, MGL_putBufferFx, MGL_putBufferFxSection, MGL_stretchBuffer, MGL_stretchBufferSection, MGL_stretchBufferFx, MGL_stretchBufferFxSection

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