Functions | |
| G2DcreateAlphaBitmap (alphabmp, x, y, left, right, ww, hh, w, h) | |
| Create a resized alpha bitmap. | |
| G2DcreateAlphaBitmapRollover (alphabmp, x, y, left, right, ww, hh, w, h) | |
| Create a resized alpha bitmap rollover (5 states). | |
| G2DloadPngToBmp (chan, path) | |
| Load an alpha bitmap file (png) to a bitmap. | |
| G2DloadBmp (chan, path) | |
| Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a bitmap. | |
| G2DloadAlphaBmp (chan, path) | |
| Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a AlphaBitmap. | |
| G2DstrechBitmap (chan, bmp, width, height, bcolor) | |
| Strech a bitmap to a new size and keep ratio. | |
| G2DcreateLayer (chan, w, h, border, bcolor, color, opacity) | |
| Create an AlphaBitmap with border, backcolor and opacity. | |
| G2DsetLayer (chan, alphabmp, w, h, border, bcolor, color, opacity) | |
| Modify an AlphaBitmap with border, backcolor and opacity. | |
Bitmap manipulation
| G2DcreateAlphaBitmap | ( | alphabmp | , | |
| x | , | |||
| y | , | |||
| left | , | |||
| right | , | |||
| ww | , | |||
| hh | , | |||
| w | , | |||
| h | ||||
| ) |
Create a resized alpha bitmap.
Prototype: fun [AlphaBitmap I I I I I I I I] AlphaBitmap
| AlphaBitmap | : source alpha bitmap | |
| I | : x decal | |
| I | : y decal | |
| I | : left marge | |
| I | : right marge | |
| I | : fixed width | |
| I | : fixed height | |
| I | : final width | |
| I | : final height |
| G2DcreateAlphaBitmapRollover | ( | alphabmp | , | |
| x | , | |||
| y | , | |||
| left | , | |||
| right | , | |||
| ww | , | |||
| hh | , | |||
| w | , | |||
| h | ||||
| ) |
Create a resized alpha bitmap rollover (5 states).
Prototype: fun [AlphaBitmap I I I I I I I I] AlphaBitmap
| AlphaBitmap | : source alpha bitmap | |
| I | : x decal | |
| I | : y decal | |
| I | : left marge | |
| I | : right marge | |
| I | : fixed width | |
| I | : fixed height | |
| I | : final width | |
| I | : final height |
| G2DloadPngToBmp | ( | chan | , | |
| path | ||||
| ) |
Load an alpha bitmap file (png) to a bitmap.
Prototype: fun [Chn S] ObjBitmap
| Chn | : channel | |
| S | : file path in scol partition |
| G2DloadBmp | ( | chan | , | |
| path | ||||
| ) |
Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a bitmap.
Prototype: fun [Chn S] ObjBitmap
| Chn | : channel | |
| S | : file path in scol partition |
| G2DloadAlphaBmp | ( | chan | , | |
| path | ||||
| ) |
Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a AlphaBitmap.
Prototype: fun [Chn S] AlphaBitmap
| Chn | : channel | |
| S | : file path in scol partition |
| G2DstrechBitmap | ( | chan | , | |
| bmp | , | |||
| width | , | |||
| height | , | |||
| bcolor | ||||
| ) |
Strech a bitmap to a new size and keep ratio.
Prototype: fun [Chn ObjBitmap I I I] ObjBitmap
| Chn | : channel | |
| ObjBitmap | : source bitmap | |
| I | : destination width | |
| I | : destination height | |
| I | : background color |
| G2DcreateLayer | ( | chan | , | |
| w | , | |||
| h | , | |||
| border | , | |||
| bcolor | , | |||
| color | , | |||
| opacity | ||||
| ) |
Create an AlphaBitmap with border, backcolor and opacity.
Prototype: fun [Chn I I I I I I] AlphaBitmap
| Chn | : channel | |
| I | : width | |
| I | : height | |
| I | : size | |
| I | : border color | |
| I | : background color | |
| I | : opacity 0 to 100 |
| G2DsetLayer | ( | chan | , | |
| alphabmp | , | |||
| w | , | |||
| h | , | |||
| border | , | |||
| bcolor | , | |||
| color | , | |||
| opacity | ||||
| ) |
Modify an AlphaBitmap with border, backcolor and opacity.
Prototype: fun [Chn AlphaBitmap I I I I I I] AlphaBitmap
| Chn | : channel | |
| AlphaBitmap | : alpha bitmap to modify | |
| I | : width | |
| I | : height | |
| I | : size | |
| I | : border color | |
| I | : background color | |
| I | : opacity 0 to 100 |
1.6.3