eyBuildLib API Reference : eyBuildLib

ebbmp

NAME

ebbmp - BMP image lib

ROUTINES

bmpRGB( ) - make RGB color
bmpPT( ) - make a point
bmpCreate( ) - create a new BMP image
bmpDestroy( ) - free the bmp handle
bmpSave( ) - save the memory bmp into bmp file
bmpPoint( ) - draw a pointer in position(y, x)
bmpPoint( ) - draw a pointer in position(y, x)
bmpRectFill( ) - draw a rectangle and fill it

DESCRIPTION


eyBuildLib : Routines

bmpRGB( )

NAME

bmpRGB( ) - make RGB color

SYNOPSIS

int bmpRGB
    (
    int r,
    int g,
    int b
    )

DESCRIPTION

RETURNS

RGB color

SEE ALSO

ebbmp


eyBuildLib : Routines

bmpPT( )

NAME

bmpPT( ) - make a point

SYNOPSIS

int bmpPT
    (
    int y,                    /* height way */
    int x                     /* width way */
    )

DESCRIPTION

RETURNS

pointer

SEE ALSO

ebbmp


eyBuildLib : Routines

bmpCreate( )

NAME

bmpCreate( ) - create a new BMP image

SYNOPSIS

BMP_HDL * bmpCreate
    (
    unsigned width,
    unsigned height,
    int      bits
    )

DESCRIPTION

this routine create a new BMP image and returned the operation handle.

RETURNS

pointer to the operation handle, or NULL if ERROR

SEE ALSO

ebbmp


eyBuildLib : Routines

bmpDestroy( )

NAME

bmpDestroy( ) - free the bmp handle

SYNOPSIS

int bmpDestroy
    (
    BMP_HDL * phdr
    )

DESCRIPTION

this routine free the bmp handle

RETURNS

OK/ERROR

SEE ALSO

ebbmp


eyBuildLib : Routines

bmpSave( )

NAME

bmpSave( ) - save the memory bmp into bmp file

SYNOPSIS

int bmpSave
    (
    BMP_HDL *   phdr,
    FUNC_FWRITE funwrite,
    FILE *      fp
    )

DESCRIPTION

this routine save the memory bmp into bmp file, if filewrite equa to NULL, fwrite( ) will set as the default write routine.

RETURNS

OK/ERROR

SEE ALSO

ebbmp


eyBuildLib : Routines

bmpPoint( )

NAME

bmpPoint( ) - draw a pointer in position(y, x)

SYNOPSIS

int bmpPoint
    (
    BMP_HDL * phdr,
    unsigned  y,
    unsigned  x,
    int       color
    )

DESCRIPTION

this routine draw a pointer in position(y, x)

RETURNS

OK/ERROR

SEE ALSO

ebbmp


eyBuildLib : Routines

bmpPoint( )

NAME

bmpPoint( ) - draw a pointer in position(y, x)

SYNOPSIS

int bmpLine
    (
    BMP_HDL * phdr,
    unsigned  point1,
    unsigned  offset,
    int       color
    )

DESCRIPTION

this routine draw a pointer in position(y, x)

RETURNS

OK/ERROR

SEE ALSO

ebbmp


eyBuildLib : Routines

bmpRectFill( )

NAME

bmpRectFill( ) - draw a rectangle and fill it

SYNOPSIS

int bmpRectFill
    (
    BMP_HDL * phdr,
    unsigned  point1,
    unsigned  offset,
    int       color
    )

DESCRIPTION

this routine draw a rectangle from point1(y, x) offset(y, x) and fill it

RETURNS

OK/ERROR

SEE ALSO

ebbmp