R2 - DrawImage


void R2::DrawImage(Image^ image,
                      double x,
                      double y,
                      double width,
                      double height)

This method draws an image.

Parameters

Image^ image

The image to be drawn.

double x

The x coordinate of the upper left corner of the rectangle in which the image is drawn.

double y

The y coordinate of the upper left corner of the rectangle in which the image is drawn.

double width

The width of the rectangle in which the image is drawn.

double height

The height of the rectangle in which the image is drawn.

Notes

The image is scaled to fit the bounding rectangle.