Bitmap manipulation
[OpenSpace3D high level 2D library]

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.

Detailed Description

Bitmap manipulation


Function Documentation

G2DcreateAlphaBitmap ( alphabmp  ,
,
,
left  ,
right  ,
ww  ,
hh  ,
,
 
)

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 ( alphabmp  ,
,
,
left  ,
right  ,
ww  ,
hh  ,
,
 
)

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 ( 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
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
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
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
G2DcreateLayer ( chan  ,
,
,
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 ( chan  ,
alphabmp  ,
,
,
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
 All Data Structures Files Functions Variables Typedefs
Generated on Mon Jul 5 21:30:13 2010 for OpenSpace3D libs by  doxygen 1.6.3