|
|
|
|
SPR_drawSectionExt
Draws a section of a sprite object at the specified location.
Declaration
void MGLAPI SPR_drawSectionExt(
SPR_bitmap *bmp,
int left,
int top,
int right,
int bottom,
int dstLeft,
int dstTop,
int op)
Prototype In
gm/sprite.h
Parameters
bmp |
Sprite object to draw |
left |
Left coordinate of area to copy from bitmap |
top |
Top coordinate of area to copy from bitmap |
right |
Right coordinate of area to copy from bitmap |
bottom |
Bottom coordinate of area to copy from bitmap |
dstLeft |
X coordinate to draw bitmap at |
dstTop |
Y coordinate to draw bitmap at |
op |
Write mode to draw with |
Description
This function draws the sprite object at the specified (x,y) location on the device context currently bound to the Sprite Manager (ie: the device context you used when you initialized it with SPR_mgrInit). The sprite is drawn using the attributes of the sprite when you added it (ie: opaque or source transparent).
See Also
SRP_draw, SPR_drawExt, SPR_mgrAddOpaqueBitmap, SPR_mgrAddTransparentBitmap,
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com