Class Bitmap

See also:

draw_box

draw_box(bitmap, x1, y1, x2, y2, color)

Draws a filled box with the corners (x1, y1) and (x2, y2) with the color color using the currently selected blender.

h

h()

Returns the width of this bitmap.

hline

(available from version 0.9c)

hline(x1, y1, x2, color)

Draws a horizontal line from (x1, y1) to (x2, y1) with the color color using the currently selected blender.

line

(available from version 0.9c)

line(x1, y1, x2, y2, color)

Draws a line from (x1, y1) to (x2, y2) with the color color using the currently selected blender.

linewu

(available from version 0.9c)

linewu(x1, y1, x2, y2, color)

Draws a Wu-line from (x1, y1) to (x2, y2) with the color colour using the currently selected blender.

putpixel

(available from version 0.9c)

putpixel(x1, y1, color)

Draws a pixel at position (x1, y1) with the color color using the currently selected blender.

putpixelwu

(available from version 0.9c)

putpixelwu(x1, y1, color)

Draws a Wu-pixel at position (x1, y1) with the color color using the currently selected blender.

w

w()

Returns the width of this bitmap.

 
main/modding_docs/lua/bitmap.txt · Last modified: 2007/12/18 19:02 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki