Older Newer
Sat, 19 Nov 2016 19:19:59 . . . . Martijn van der Lee [initial version]


Changes by last author:

Added:
= setLine =

== Syntax ==

:void setLine(int x1, int y1, int x2, int y2, int color)

== Arguments ==

:x1

::Horizontal offset from the left edge of the start of the line, in pixels.

:y1

::Vertical offset from the top edge of the start of the line, in pixels.

:x2

::Horizontal offset from the left edge of the end of the line, in pixels.

:y2

::Vertical offset from the top edge of the endof the line, in pixels.

:color

::Color value for the text.

== Description ==

:Render a line to an ownerdraw control.

== Example ==

<code>

const int x = HDBUsToPixels(getCtlPos(n, 2));

const int y = VDBUsToPixels(getCtlPos(n, 1));

startSetPixel(3);

setLine(0, 0, x, y, COLOR(RED));

endSetPixel(3);

</code>

== Also see ==

:(startSetPixelBuffer)?

== Comments ==

: