setBitmapStretchTransparent

Syntax

int setBitmapStretchTransparent(int x, int y, int iName, int width, int height, UINT color)

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.
color
The color (RGB) value of the transparent parts. Pixels in the bitmap with this color will not be drawn.

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, without drawing pixels of the specified color.
If coordinates are negative or the bitmap will not fit the canvas, it is clipped at the edges of the canvas.

Example

Also see

RGB, RGBA, setBitmap

Comments

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