Raster Funcs

class lwsdk.LWRasterFuncs(*args)

Bases: object

Proxy of C++ PCore::LWRasterFuncs class

 blitPanel(LWRasterID src, int srcx, int srcy, LWPanelID dst, int dstx, int dsty, int width, int height)

Transfer a raster image, or part of one, to the surface of a panel. srcx and srcy are the upper left corner of the source rectangle, while dstx and dsty are the upper left corner of the destination, relative to the upper left corner of the panel window.

 blitRaster(LWRasterID arg1, int arg2, int arg3, LWRasterID arg4, int arg5, int arg6, int arg7, int arg8)

!! NOT DOCUMENTED !!

 create(int width, int height, int flags) → LWRasterID

Create a raster. No flags are currently defined, so flags should be 0.

 destroy(LWRasterID buffer)

Free a raster.

 drawBorder(LWRasterID buffer, int indent, int x, int y, int width, int height)

Draw a LightWave® rectangular border. The indent controls the border thickness.

 drawBox(LWRasterID buffer, int color, int x, int y, int width, int height)

Draw a filled box.

 drawLine(LWRasterID buffer, int color, int x, int y, int x2, int y2)

Draw a line from (x, y) to (x2, y2) inclusive.

 drawPixel(LWRasterID buffer, int color, int x, int y)

Set the color of a pixel. The color is either one of the predefined colors in lwpanel.h or 8-bit levels of red, green and blue.

 drawRGBBox(LWRasterID buffer, int red, int green, int blue, int x, int y, int width, int height)

Draw a filled box.

 drawRGBPixel(LWRasterID buffer, int red, int green, int blue, int x, int y)

Set the color of a pixel.

 drawText(LWRasterID buffer, char text, int color, int x, int y)

Draw a line of text. The coordinates specify the upper left corner of the first character cell.

 eraseBox(LWRasterID buffer, int x, int y, int width, int height)

Draw a filled box. The erase color is the panel's background color.

Previous topic

Viewport Info

Next topic

Miscellaneous Classes

This Page