Description
Source
Call Graph
BMP_Decode
Loads a BMP image located at the given address, decodes it and stores the resulting image inside the provided buffer.


Syntax / parameters
unsigned char BMP_Decode (void *file, unsigned char *buffer, unsigned int width, unsigned int height, unsigned char bpp)
|
Name |
Type |
Default |
Description |
file |
void *
|
|
Buffer which holds the BMP file.
|
buffer |
unsigned char *
|
|
Buffer in which to store the decoded image.
|
width |
unsigned int
|
|
Buffer width in pixels.
|
height |
unsigned int
|
|
Buffer height in pixels.
|
bpp |
unsigned char
|
|
Number of bits per pixels that the buffer stores.
|
|
Return value |
unsigned char
|
|
0 if the image has been loaded; otherwise returns an error code.
|
Description
Loads a BMP image located at the given address, decodes it and stores the resulting image inside the provided buffer.
Image must have the specified width & height. If no buffer is provided, this function simply checks if it is able to decode the image.
Source
The documentation for this Member was generated from the following files:
bmp.c