src/leptwin.c
static DWORD
DSImageBitsSize(LPBITMAPINFO pbmi)
{
    switch(pbmi->bmiHeader.biCompression)
    {
    case BI_RLE8:  /* wrong if haven't called DSCreateDIBSection or
                    * CreateDIBSection with this pbmi */
    case BI_RLE4:
        return pbmi->bmiHeader.biSizeImage;
        break;
    default:  /* should not have to use "default" */
    case BI_RGB:
    case BI_BITFIELDS:
        return BYTESPERLINE(pbmi->bmiHeader.biWidth, \
                   pbmi->bmiHeader.biBitCount * pbmi->bmiHeader.biPlanes) *
               pbmi->bmiHeader.biHeight;
        break;
    }
    return 0;
}
/* **********************************************************************
  DWORD DSImageBitsSize(LPBITMAPINFO pbmi)

  PARAMETERS:
    LPBITMAPINFO - pointer to a BITMAPINFO describing a DIB

  RETURNS:
    DWORD    - the size, in bytes, of the DIB's image bits
    
  REMARKS:
    Calculates and returns the size, in bytes, of the image bits for
    the DIB described by the BITMAPINFO.
********************************************************************** */


DWORD    - the size, in bytes, of the DIB's image bits

Calculates and returns the size, in bytes, of the image bits for
the DIB described by the BITMAPINFO.
DWORD - the size in bytes of the DIB ' s image bits Calculates and returns the size in bytes of the image bits for the DIB described by the BITMAPINFO .
static DWORD
DSImageBitsSize(LPBITMAPINFO pbmi)
{
    switch(pbmi->bmiHeader.biCompression)
    {
    case BI_RLE8:  
    case BI_RLE4:
        return pbmi->bmiHeader.biSizeImage;
        break;
    default:  
    case BI_RGB:
    case BI_BITFIELDS:
        return BYTESPERLINE(pbmi->bmiHeader.biWidth, \
                   pbmi->bmiHeader.biBitCount * pbmi->bmiHeader.biPlanes) *
               pbmi->bmiHeader.biHeight;
        break;
    }
    return 0;
}
static DWORD DSImageBitsSize ( LPBITMAPINFO pbmi ) { switch ( pbmi -> bmiHeader . biCompression ) { case BI_RLE8 : case BI_RLE4 : return pbmi -> bmiHeader . biSizeImage ; break ; default : case BI_RGB : case BI_BITFIELDS : return BYTESPERLINE ( pbmi -> bmiHeader . biWidth , pbmi -> bmiHeader . biBitCount * pbmi -> bmiHeader . biPlanes ) * pbmi -> bmiHeader . biHeight ; break ; } return 0 ; }
DWORD DSImageBitsSize(LPBITMAPINFO pbmi)
PARAMETERS:
LPBITMAPINFO - pointer to a BITMAPINFO describing a DIB
DWORD DSImageBitsSize ( LPBITMAPINFO pbmi ) PARAMETERS : LPBITMAPINFO - pointer to a BITMAPINFO describing a DIB
/* wrong if haven't called DSCreateDIBSection or
                    * CreateDIBSection with this pbmi */ /* should not have to use "default" */