SOBITMAPHEADERSOBITMAPHEADER*
*Contents  *Index  *Topic Contents
*Previous Topic: SOARCINFO
*Next Topic: SOBORDER

SOBITMAPHEADER

Contains information about the bitmap to be output.

Syntax

typedef struct SOBITMAPHEADERtag {
    WORD wStructSize; 
    WORD wImageFlags; 
    WORD wImageWidth; 
    WORD wImageLength; 
    WORD wTileWidth; 
    WORD wTileLength; 
    WORD wBitsPerPixel; 
    WORD wNPlanes; 
    WORD wHDpi; 
    WORD wVDpi; 
} SOBITMAPHEADER, VWPTR *PSOBITMAPHEADER;

Members

wStructSize
Size, in bytes, of the structure.
wImageFlags
Image flags. This member can be one (and only one) of the color format values combined with one or more of the other attribute values.
The color format can be one of these values:
SO_BGRCOLORPixel values are RGB color values (24-bit only); bytes are stored consecutively in the order B,G,R.
SO_BLACKANDWHITEPixels are black or white (1 bit per pixel only).
SO_COLORPALETTEPixel values are indexes into the color palette for the bitmap.
SO_GRAYSCALEPixel values are gray scale values.
SO_RGBCOLORPixel values are RGB color values (24-bit only); bytes are stored consecutively in the order R,G,B.
Other attributes can be a combination of these values:
SO_BOTTOMTOTOPThe image is provided in scan lines from the bottom up. The default is top to bottom.
SO_WHITEZEROFor gray scale images and black-and-white images only, a pixel with a value of zero is a white pixel, and increasing pixel values become darker. By default, a value of zero is defined as a black pixel with increasing values becoming lighter.
wImageWidth
Width, in pixels, of the image.
wImageLength
Height, in pixels, of the image.
wTileWidth
Width, in pixels, of the tile.
wTileLength
Height, in pixels, of the tile.
wBitsPerPixel
Number of consecutive bits that define the pixel color. The number is currently limited to 1, 4, 8, or 24.
wNPlanes
Color planes. This member must be 1.
wHDpi
Horizontal resolution, in pixels per inch, of the display on which the image originated. If the resolution is not known, this member can be zero.
wVDpi
Vertical resolution, in pixels per inch, of the display on which the image originated. If the resolution is not known, this member can be zero.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.