setBitmapStretch

Syntax

int setBitmapStretch(int x, int y, int iName, int width, int height)

Arguments

x
The horizontal coordinate at which to draw the bitmap.
y
The vertical coordinate at which to draw the bitmap.
name
Null-terminated string with the name of the bitmap to use. Can be either the name of an embedded resource or a filename. Filenames may include directory information.
width
The horizontal size to which the bitmap will be stretched or shrunk.
height
The vertical size to which the bitmap will be stretched or shrunk.

Return

Integer containing value TRUE if operation completed succesfull, otherwise FALSE.

Description

Draw a streched or shrunk (according to specified dimensions) bitmap on the current ownerdraw of buffer canvas at the specified coordinates.
If coordinates are negative or the bitmap will not fit the canvas, it is clipped at the edges of the canvas.

Example

Also see

setBitmap

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.