setBitmapTransparent

Syntax

int setBitmapTransparent(int x, int y, int iName, 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.
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 successfully, otherwise FALSE.

Description

Draw a specified 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.

See Also

RGB, RGBA, setBitmap

Comments

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