Download User Manual for GAPI

Transcript
Renesas GAPI Graphics API
3.1.7
R_BMP_IndexColors
Determine number of significant colors in the BMP color table.
Format
uint32_t R_BMP_IndexColors(BMP_t const *const pBmp);
Parameters
pBmp
Pointer to the BMP structure.
Return Values
Number of significant colors in the index table, 0 if not an indexed format.
Properties
Prototyped in file ”r_GAPI.h”
Description
BMP index tables can have a variable amount of defined colors (up to 256). This function returns that number
active in this BMP.
Example
extern BMP_t *picture;
{
uint32_t colors = R_BMP_IndexColors(picture);
}
Revision 2.01
July 18, 2012
Page 18 of 53