WinBinder Manual/wb set image

From wiki.swiftlytilting.com

Assigns an image to an object

Syntax

bool wb_set_image (int wbobject, mixed source [, int transparentcolor [, int index [, int param]]])
  • wbobject is the WinBinder object to which the image will be assiged.
  • source can be either an image handle or a path to an image file.
  • The optional parameter transparentcolor tells the function which color is to be considered transparent. The default is NOCOLOR (no transparency).
  • index is used to select a specific image from a multi-image file (such as a DLL or executable).
  • param is the number of horizontal images contained in a multi-image bitmap in ListView and TreeView controls.

Returns

Returns TRUE on success or FALSE if an error occurs.

See also