wb_draw_image

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

Draws a 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 first parameter, target, may be a WinBinder object, a window handle, a drawing surface or a bitmap. 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.

Returns TRUE on success or FALSE if an error occurs.

See also

Drawing functions