Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

WinBinder Manual/wb draw image

Draws a bitmap.

Syntax

bool wb_draw_image (int target, int bitmap [, int xpos [, int ypos [, int width [, int height [int transparentcolor]]]]])
  • target, may be a WinBinder object, a window handle, a drawing surface or 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.
  • 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

Returns TRUE on success or FALSE if an error occurs.

See also

Winbinder Projects