GrDrawImageToFit()

Name

GrDrawImageToFit() -- Draw an image with scaling

Synopsis

void GrDrawImageToFit ( GR_DRAW_ID id , GR_GC_ID gc , GR_COORD x , GR_COORD y , GR_SIZE width , GR_SIZE height , GR_IMAGE_ID imageid );

Description

This function draws the image specified by imageid on to the drawable id. The image is drawn to location (x,y) on the drawable and the image is stretched to width and height pixels as it is drawn.

Parameters

TypeNameDescription
GR_DRAW_IDidThe ID of the drawable to draw the image onto.
GR_GC_IDgcThe ID of the graphics context to use when drawing the image.
GR_COORDxThe X coordinate to draw the image at, relative to the drawable.
GR_COORDyThe Y coordinate to draw the image at, relative to the drawable.
GR_SIZEwidthThe width to scale the image to.
GR_SIZEheightThe height to scale the image to.
GR_IMAGE_IDimageidThe ID of the image to draw.

See Also

GrFreeImage(), GrGetImageInfo(), GrDrawImageFromFile(), GrLoadImageFromFile().