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_BGRCOLOR Pixel values are RGB color values (24-bit only); bytes are stored consecutively in the order B,G,R. SO_BLACKANDWHITE Pixels are black or white (1 bit per pixel only). SO_COLORPALETTE Pixel values are indexes into the color palette for the bitmap. SO_GRAYSCALE Pixel values are gray scale values. SO_RGBCOLOR Pixel 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_BOTTOMTOTOP The image is provided in scan lines from the bottom up. The default is top to bottom. SO_WHITEZERO For 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.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.