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

#include <Pcx.h>

List of all members.

Public Member Functions

 PcxImage (short w, short h, unsigned long *hibits)
 PcxImage (short w, short h, unsigned char *bits, unsigned char *colors)
 PcxImage ()
 ~PcxImage ()
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

PcxHeader hdr
unsigned char * bitmap
unsigned long * himap
unsigned char pal [768]
unsigned long imagebytes
unsigned short width
unsigned short height

Detailed Description

Definition at line 42 of file Pcx.h.


Constructor & Destructor Documentation

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

Definition at line 128 of file PCX.CPP.

PcxImage::PcxImage ( short  w,
short  h,
unsigned char *  bits,
unsigned char *  colors 
)

Definition at line 35 of file PCX.CPP.

PcxImage::PcxImage ( )

Definition at line 31 of file PCX.CPP.

PcxImage::~PcxImage ( )

Definition at line 213 of file PCX.CPP.


Member Function Documentation

int PcxImage::Load ( char *  filename)

Definition at line 221 of file PCX.CPP.

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

Definition at line 331 of file PCX.CPP.

int PcxImage::Save ( char *  filename)

Definition at line 435 of file PCX.CPP.

static const char* PcxImage::TYPENAME ( )
inlinestatic

Definition at line 44 of file Pcx.h.


Member Data Documentation

unsigned char* PcxImage::bitmap

Definition at line 58 of file Pcx.h.

PcxHeader PcxImage::hdr

Definition at line 57 of file Pcx.h.

unsigned short PcxImage::height

Definition at line 62 of file Pcx.h.

unsigned long* PcxImage::himap

Definition at line 59 of file Pcx.h.

unsigned long PcxImage::imagebytes

Definition at line 61 of file Pcx.h.

unsigned char PcxImage::pal[768]

Definition at line 60 of file Pcx.h.

unsigned short PcxImage::width

Definition at line 62 of file Pcx.h.


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