## wb_draw_image

bool wb_draw_image (int target, int bitmap [, int xpos [, int ypos [, int width [, int height [, int transparentcolor [, int xoffset, int yoffset]]]]]])

Draws a bitmap. The first parameter, target, may be a WinBinder object, a window handle, a drawing surface or another bitmap.

xpos and ypos are the coordinates of the upper-left corner, in pixels. These parameters default to zero. width and height are the dimensions of the rectangle. These parameters also default to zero. In this case the bitmap is drawn with its original size. The parameter transparentcolor may be used to indicate which color is to be made transparent. If is set to `NOCOLOR` (the default), no transparency is used and the image is opaque. Parameters xoffset and yoffset are optionally used to specify where the image will be drawn.

Returns `TRUE` on success or `FALSE` if an error occurs.

# See also

Drawing functions