OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Functions | |
G2DcreateAlphaBitmap (alphabmp, x, y, left, right, ww, hh, w, h) | |
Create a resized alpha bitmap. More... | |
G2DcreateAlphaBitmapRollover (alphabmp, x, y, left, right, ww, hh, w, h) | |
Create a resized alpha bitmap rollover (5 states) More... | |
G2DloadPngToBmp (chan, path) | |
Load an alpha bitmap file (png) to a bitmap. More... | |
G2DloadPngToBmpPack (chan, path) | |
Load an alpha bitmap file (png) to a bitmap. More... | |
G2DloadBmp (chan, path) | |
Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a bitmap. More... | |
G2DloadBmpPack (chan, file) | |
Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a bitmap. More... | |
G2DloadAlphaBmp (chan, path) | |
Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a AlphaBitmap. More... | |
G2DloadAlphaBmpPack (chan, file) | |
Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a AlphaBitmap. More... | |
G2DconvertBmpToAlphaBmp (chan, bmp) | |
Convert a bitmap to a AlphaBitmap. More... | |
G2DstrechBitmap (chan, bmp, width, height, bcolor) | |
Strech a bitmap to a new size and keep ratio. More... | |
G2DstrechBitmapToMaxSize (chan, bmp, width, height) | |
Strech a bitmap to a new size and keep ratio without borders. More... | |
G2DstrechAlphaBitmap (chan, bmp, width, height, keepratio, bcolor) | |
Strech an alpha bitmap to a new size and keep ratio. More... | |
G2DcopyAlphaBitmap (chan, bmp, px, py, pw, ph) | |
Copy an alpha bitmap rectangle to a new alpha bitmap. More... | |
G2DcreateLayer (chan, w, h, border, bcolor, color, opacity) | |
Create an AlphaBitmap with border, backcolor and opacity. More... | |
G2DsetLayer (chan, alphabmp, w, h, border, bcolor, color, opacity) | |
Modify an AlphaBitmap with border, backcolor and opacity. More... | |
Detailed Description
Bitmap manipulation
Function Documentation
◆ G2DcreateAlphaBitmap()
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
- Parameters
-
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
- Returns
- AlphaBitmap : the resized alpha bitmap
◆ G2DcreateAlphaBitmapRollover()
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
- Parameters
-
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
- Returns
- AlphaBitmap : the resized alpha bitmap rollover (5 states)
◆ G2DloadPngToBmp()
G2DloadPngToBmp | ( | chan | , |
path | |||
) |
Load an alpha bitmap file (png) to a bitmap.
Prototype: fun [Chn S] ObjBitmap
- Parameters
-
Chn : channel S : file path in scol partition
- Returns
- ObjBitmap : the loaded bitmap
◆ G2DloadPngToBmpPack()
G2DloadPngToBmpPack | ( | chan | , |
path | |||
) |
Load an alpha bitmap file (png) to a bitmap.
Prototype: fun [Chn S] ObjBitmap
- Parameters
-
Chn : channel P : file
- Returns
- ObjBitmap : the loaded bitmap
◆ G2DloadBmp()
G2DloadBmp | ( | chan | , |
path | |||
) |
Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a bitmap.
Prototype: fun [Chn S] ObjBitmap
- Parameters
-
Chn : channel S : file path in scol partition
- Returns
- ObjBitmap : the loaded bitmap
◆ G2DloadBmpPack()
G2DloadBmpPack | ( | chan | , |
file | |||
) |
Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a bitmap.
Prototype: fun [Chn S] ObjBitmap
- Parameters
-
Chn : channel P : file
- Returns
- ObjBitmap : the loaded bitmap
◆ G2DloadAlphaBmp()
G2DloadAlphaBmp | ( | chan | , |
path | |||
) |
Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a AlphaBitmap.
Prototype: fun [Chn S] AlphaBitmap
- Parameters
-
Chn : channel S : file path in scol partition
- Returns
- AlphaBitmap : the loaded AlphaBitmap
◆ G2DloadAlphaBmpPack()
G2DloadAlphaBmpPack | ( | chan | , |
file | |||
) |
Load an bitmap (bmp, jpg, tga) or alphabitmap (png) file to a AlphaBitmap.
Prototype: fun [Chn S] AlphaBitmap
- Parameters
-
Chn : channel P : file
- Returns
- AlphaBitmap : the loaded AlphaBitmap
◆ G2DconvertBmpToAlphaBmp()
G2DconvertBmpToAlphaBmp | ( | chan | , |
bmp | |||
) |
Convert a bitmap to a AlphaBitmap.
Prototype: fun [Chn ObjBitmap] AlphaBitmap
- Parameters
-
Chn : channel ObjBitmap : bitmap to convert
- Returns
- AlphaBitmap : the AlphaBitmap
◆ G2DstrechBitmap()
G2DstrechBitmap | ( | chan | , |
bmp | , | ||
width | , | ||
height | , | ||
bcolor | |||
) |
Strech a bitmap to a new size and keep ratio.
Prototype: fun [Chn ObjBitmap I I I] ObjBitmap
- Parameters
-
Chn : channel ObjBitmap : source bitmap I : destination width I : destination height I : background color
- Returns
- ObjBitmap : the bitmap in new size
◆ G2DstrechBitmapToMaxSize()
G2DstrechBitmapToMaxSize | ( | chan | , |
bmp | , | ||
width | , | ||
height | |||
) |
Strech a bitmap to a new size and keep ratio without borders.
Prototype: fun [Chn ObjBitmap I I] ObjBitmap
- Parameters
-
Chn : channel ObjBitmap : source bitmap I : destination max width I : destination max height
- Returns
- ObjBitmap : the bitmap in new size
◆ G2DstrechAlphaBitmap()
G2DstrechAlphaBitmap | ( | chan | , |
bmp | , | ||
width | , | ||
height | , | ||
keepratio | , | ||
bcolor | |||
) |
Strech an alpha bitmap to a new size and keep ratio.
Prototype: fun [Chn ObjAlphaBitmap I I I I] ObjAlphaBitmap
- Parameters
-
Chn : channel ObjAlphaBitmap : source alpha bitmap I : destination width I : destination height I : keep ratio (1 to enable, 0 otherwise) I : background color
- Returns
- ObjAlphaBitmap : the alpha bitmap in new size
◆ G2DcopyAlphaBitmap()
G2DcopyAlphaBitmap | ( | chan | , |
bmp | , | ||
px | , | ||
py | , | ||
pw | , | ||
ph | |||
) |
Copy an alpha bitmap rectangle to a new alpha bitmap.
Prototype: fun [Chn ObjAlphaBitmap I I I I] ObjAlphaBitmap
- Parameters
-
Chn : channel ObjAlphaBitmap : source alpha bitmap I : rectangle pos x I : rectangle pos y I : rectangle width I : rectangle height
- Returns
- ObjAlphaBitmap : the new alpha bitmap
◆ G2DcreateLayer()
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
- Parameters
-
Chn : channel I : width I : height I : size I : border color I : background color I : opacity 0 to 100
- Returns
- AlphaBitmap : AlphaBitmap for using as layer
◆ G2DsetLayer()
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
- Parameters
-
Chn : channel AlphaBitmap : alpha bitmap to modify I : width I : height I : size I : border color I : background color I : opacity 0 to 100
- Returns
- AlphaBitmap : AlphaBitmap for using as layer
Generated on Thu Aug 24 2017 10:05:22 for OpenSpace3D libs by
