R2 - DrawImage


void R2::DrawImage(Image^ image,
                      Rectangle destRect,
                      long long srcx,
                      long long srcy,
                      long long srcwidth,
                      long long 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.

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.

ImageAttributes^ imageAttributes

The attributes of the image to be drawn.

Notes

The image is scaled to fit the bounding rectangle.