R2 - DrawImage


void R2::DrawImage(Image^ image,
                      Rectangle destRect,
                      double srcx,
                      double srcy,
                      double srcwidth,
                      double srcheight,
                      unsigned srcUnit,
                      ImageAttributes^ imageAttributes)

This method draws an image.

Parameters

Image^ image

The image to be drawn.

Rectangle destRect

The destination rectangle in which the image is drawn.

double srcx

The x coordinate of the source portion of the image.

double srcy

The y coordinate of the source portion of the image.

double srcwidth

The width of the source rectangle to drawn.

double srcheight

The height of the source rectangle to be drawn.

unsigned srcUnit

The unit of measure in the source image.

ImageAttributes^ imageAttributes

The attributes of the image to be drawn.

Notes

The image is scaled to fit the bounding rectangle.