Raster Funcs

class lwsdk.LWRasterFuncs(self)

Bases: object

Proxy of C++ PCore::LWRasterFuncs class

 blitPanel(LWRasterID src, int srcx, int srcy, LWPanelID dest, int destx, int desty, int w, int h)

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 src, int srcx, int srcy, LWRasterID dest, int destx, int desty, int w, int h)

!! NOT DOCUMENTED !!

 create(int w, int h, int flags) → LWRasterID

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

 destroy(LWRasterID raster)

Free a raster.

 drawBorder(LWRasterID raster, int indent, int x, int y, int w, int h)

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

 drawBox(LWRasterID raster, int color, int x, int y, int w, int h)

Draw a filled box.

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

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

 drawPixel(LWRasterID raster, 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 raster, int r, int g, int b, int x, int y, int w, int h)

Draw a filled box.

 drawRGBPixel(LWRasterID raster, int r, int g, int b, int x, int y)

Set the color of a pixel.

 drawText(LWRasterID raster, 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 raster, int x, int y, int w, int h)

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

textWidth(self, LWRasterID raster, char text) → int

Previous topic

Viewport Info

Next topic

Change Functions (2015)

This Page