Parent Topic: SGLDrawContext
void DrawImage (poImage, nSrcX, nSrcY, nDestX, nDestY,
nWidth, nHeight);
SGLImage* poImage;
The SGLImage that will be drawn.
int nSrcX;
X coordinate relative to the upper left corner of
the SGLImage to copy from.
int nSrcY;
Y coordinate relative to the upper left corner of
the SGLImage to copy from.
int nDestX;
X coordinate relative to the upper left corner of
the SGLPixmap to copy to.
int nDestY;
Y coordinate relative to the upper left corner of
the SGLPixmap to copy to.
int nWidth;
Width of the rectangular area to be copied.
int nHeight;
Height of the rectangular area to be copied.
DrawImage() draws a section of an SGLImage into the SGLPixmap associated
with this SGLDrawContext. This area is defined by nSrcX, nSrcY, nWidth and
nHeight. It draws this imagery at position nDestX, nDestY of the SGLPixmap.For efficiency reasons, drawing imagery in the preferred native format is only possible with nSrcX and nSrcY both set to 0.
The output is clipped to the area of the SGLPixmap.
See Also: SGLDrawContext, SGLPixmap