Data Type : Composite Data; Rich Text

CDBITMAPHEADER - Header record for a Bitmap
----------------------------------------------------------------------------------------------------------


#include <editods.h>

Definition :

typedef struct {
  LSIG Header; /* Signature and Length */
  RECTSIZE Dest; /* dest bitmap height and width in PELS */
  RECTSIZE Crop; /* crop destination dimensions (UNUSED) */
  WORD     Flags; /* CDBITMAP_FLAGS (version 2 and later) */
  WORD     wReserved; /* Reserved for future use */
  DWORD    lReserved; /* Reserved for future use */
  WORD     Width; /* Width of bitmap in PELS */
  WORD     Height; /* Height " " */
  WORD     BitsPerPixel; /* Bits per PEL, must be 1,8 or 16 */
  WORD     SamplesPerPixel; /* For 1 or 8 BPP, set to 1.
  For 16 BBP, set to 3 */
  WORD     BitsPerSample; /* For 1 BPP, set to 1. For 8 BPP,
  set to 8.  For 16 BPP, set to 5 */
  WORD     SegmentCount; /* Number of CDBITMAPSEGMENTS */
  WORD     ColorCount; /* Number of entries in
  CDCOLORTABLE. 0-256 */
  WORD     PatternCount; /* Number of entries in CDPATTERNTABLE.
                          Set to 0 if using C API. */
} CDBITMAPHEADER;


Description :

A rich text field may contain a bitmap image. There are three types, monochrome, 8-bit mapped color, and 16-bit color; a gray scale bitmap is stored as an 8-bit color bitmap with a color table having entries [0, 0, 0], [1, 1, 1], . . . , [255, 255, 255]. All bitmaps are stored as a single plane (some graphics devices support multiple planes).
See Also :

CDBITMAPSEGMENT
----------------------------------------------------------------------------------------------------------