 |
CalcBitmapSize |
Function (ROM Call 0x3EF) |
Calculates the size of a bitmap.
CalcBitmapSize calculates the size of the bitmap pointed to by b.
In fact, CalcBitmapSize has the following implementation:
unsigned short CalcBitmapSize(BITMAP *b)
{
return ((((b->NumCols + 7) >> 3) * b->NumRows) + BITMAP_HDR_SIZE);
}
This means that you can create a bitmap with only NumRows and
NumCols filled, and pass it to this function.
You can also define a macro for this purpose.
Used by: DynMenuAdd, DynMenuChange, MenuBegin, MenuKey, MenuOff, MenuOn, MenuTopRedef, MenuTopSelect, ROM Call 0x421
See also: BitmapGet, BitmapPut, BitmapSize