R2 - DrawImage


void R2::DrawImage(Image^ image,
                      double x,
                      double y,
                      double srcx,
                      double srcy,
                      double srcwidth,
                      double srcheight,
                      unsigned srcUnit)

This method draws an image.

Parameters

Image^ image

The image to be drawn.

double x

The x coordinate of the position at which the image is drawn.

double y

The y coordinate of the position at 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.

Notes

The image is scaled to fit the bounding rectangle.