int PackedDibGetNumColors (BITMAPINFO * pPackedDib) { int iNumColors; iNumColors = PackedDibGetColorsUsed (pPackedDib); if (iNumColors == 0&& PackedDibGetBitCount (pPackedDib) < 16) iNumColors = 1 << PackedDibGetBitCount (pPackedDib); return iNumColors; }
int PackedDibGetRowLength (BITMAPINFO * pPackedDib) { return ((PackedDibGetWidth (pPackedDib) * PackedDibGetBitCount (pPackedDib) + 31) & ~31) >> 3 ; }