Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
BmpImage Struct Reference

#include <Bmp.h>

List of all members.

Public Member Functions

 BmpImage (short w, short h, unsigned long *hibits)
 BmpImage ()
 ~BmpImage ()
int Load (char *filename)
int Save (char *filename)
int LoadBuffer (unsigned char *buf, int len)

Static Public Member Functions

static const char * TYPENAME ()

Public Attributes

BmpFileHeader file_hdr
BmpInfoHeader info_hdr
DWORD palette [256]
DWORD * image
WORD width
WORD height

Detailed Description

Definition at line 51 of file Bmp.h.


Constructor & Destructor Documentation

BmpImage::BmpImage ( short  w,
short  h,
unsigned long *  hibits 
)

Definition at line 29 of file Bmp.cpp.

BmpImage::BmpImage ( )

Definition at line 25 of file Bmp.cpp.

BmpImage::~BmpImage ( )

Definition at line 60 of file Bmp.cpp.


Member Function Documentation

int BmpImage::Load ( char *  filename)

Definition at line 67 of file Bmp.cpp.

int BmpImage::LoadBuffer ( unsigned char *  buf,
int  len 
)

Definition at line 142 of file Bmp.cpp.

int BmpImage::Save ( char *  filename)

Definition at line 212 of file Bmp.cpp.

static const char* BmpImage::TYPENAME ( )
inlinestatic

Definition at line 53 of file Bmp.h.


Member Data Documentation

BmpFileHeader BmpImage::file_hdr

Definition at line 65 of file Bmp.h.

WORD BmpImage::height

Definition at line 70 of file Bmp.h.

DWORD* BmpImage::image

Definition at line 68 of file Bmp.h.

BmpInfoHeader BmpImage::info_hdr

Definition at line 66 of file Bmp.h.

DWORD BmpImage::palette[256]

Definition at line 67 of file Bmp.h.

WORD BmpImage::width

Definition at line 69 of file Bmp.h.


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