Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
ALPHA8BITMAPINFO Struct Reference

List of all members.

Public Member Functions

 ALPHA8BITMAPINFO (LONG aWidth, LONG aHeight)

Public Attributes

BITMAPINFOHEADER bmiHeader
RGBQUAD bmiColors [256]

Detailed Description

Definition at line 316 of file nsImageWin.cpp.


Constructor & Destructor Documentation

ALPHA8BITMAPINFO::ALPHA8BITMAPINFO ( LONG  aWidth,
LONG  aHeight 
) [inline]

Definition at line 321 of file nsImageWin.cpp.

  {
    memset(&bmiHeader, 0, sizeof(bmiHeader));
    bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
    bmiHeader.biWidth = aWidth;
    bmiHeader.biHeight = aHeight;
    bmiHeader.biPlanes = 1;
    bmiHeader.biBitCount = 8;


    /* fill in gray scale palette */
     int i;
     for(i=0; i < 256; i++){
      bmiColors[i].rgbBlue = 255-i;
      bmiColors[i].rgbGreen = 255-i;
      bmiColors[i].rgbRed = 255-i;
      bmiColors[1].rgbReserved = 0;
     }
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 318 of file nsImageWin.cpp.

BITMAPINFOHEADER ALPHA8BITMAPINFO::bmiHeader

Definition at line 317 of file nsImageWin.cpp.


The documentation for this struct was generated from the following file: