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

WinBinder Manual/wb draw line

Draws a straight line.

bool wb_draw_line (int target, int x0, int y0, int x1, int y1, int color [, int linewidth])
  • target may be a WinBinder object, a window handle, a drawing surface or a bitmap.
  • The start and end points of the line are (x0, y0) and (x1, y1) respectively, in pixels.
  • color is a RGB color value.
  • linewidth is the width of the line, in pixels. A linewidth of zero sets the width to 1 pixel.

Returns

Returns TRUE on success or FALSE if an error occurs.

See also

Winbinder Projects