biClrUsed
biClrUsed is a field in the BITMAPINFOHEADER structure used by the Windows BMP (bitmap) file format. It is a 32-bit unsigned integer that indicates how many color table entries are actually used by the bitmap. The field is relevant for palettized or indexed color images, where the image stores color indices into a palette rather than direct color values.
In practice, biClrUsed applies when biBitCount is 8 or less. The color table (palette) for such images
If biBitCount is greater than 8, the biClrUsed field is not meaningful and should be zero; in
biClrImportant is a related field that indicates how many color indices are considered important for displaying
Overall, biClrUsed helps specify the actual color information used from the palette, enabling more efficient storage