# R2 - DrawImage

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

This method draws an image.

## Parameters

Image^ image

The image to be drawn.

long long x

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

long long y

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

long long srcx

The x coordinate of the source portion of the image.

long long srcy

The y coordinate of the source portion of the image.

long long srcwidth

The width of the source rectangle to drawn.

long long 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.