Home |
Class PegBmpConvert HMI (Human-Machine Interface) Classes |
Class PegBmpConvertPegBmpConvert is a PegImageConvert derived class for reading and de-compressing MS Windows or OS/2 BMP graphics files. Before using PegBmpConvert, be sure to read fully the PegImageConvert base class documentation. typedef struct { PEGUINT id; DWORD file_size; PEGUINT reserved[2]; DWORD image_offset; PEGUINT header_size; PEGUINT not_used; DWORD xres; DWORD yres; PEGUINT numplanes; PEGUINT bits_per_pix; DWORD compression; DWORD bit_map_size; DWORD hor_res; DWORD vert_res; DWORD number_of_colors; DWORD num_sig_colors; } BmpHeader; typedef struct { UCHAR Blue; UCHAR Green; UCHAR Red; UCHAR Count; } BmpPalEntry; class PegBmpConvert : public PegImageConvert { public: PegBmpConvert(PEGUINT wId = 0); BmpHeader * GetBmpHeader(void); virtual void GetULCColor(void); BOOL ReadImage(FILE * fd, PEGINT iCount = 1); }; #endif ConstructorsThe constructor creates a bitmap conversion object. Method BmpHeaderThis function returns a pointer to the bitmap header information. This can be used to determine additional information about the decoded bitmap file.
|