|
|
|
|
MGL_stretchBufferFxSection
Stretches a section of an offscreen buffer to the specified device context, while applying different effects in the process.
Declaration
void MGLAPI MGL_stretchBufferFxSection(
MGLDC *dc,
int left,
int top,
int right,
int bottom,
int dstLeft,
int dstTop,
int dstRight,
int dstBottom,
MGLBUF *buf,
bltfx_t *fx)
Prototype In
mgraph.h
Parameters
dc |
Device context to copy buffer to |
left |
Left coordinate of section to stretch |
top |
Top coordinate of section to stretch |
right |
Right coordinate of section to stretch |
bottom |
Bottom coordinate of section to stretch |
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 |
fx |
Information describing the effects to apply to the blit (bltfx_t) |
Description
Stretches a section of an offscreen buffer to the destination rectangle on the specified device context, while applying optional effects. You can use the flags member of the bltfx_t structure to define whether stretching is done using nearest color stretching or if pixel interpolation will be used. If you don't specify any flags, nearest color stretching will be used.
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