Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

djImage Class Reference

#include <djimage.h>

List of all members.

Public Methods

 djImage ()
 djImage (int iWidth, int iHeight, int ibpp)
 ~djImage ()
int CalculatePixelWidth (int ibpp)
void CreateImage (int x, int y, int ibpp, int ipitch=-1)
djColor GetPixelColor (int x, int y)
int GetPixel (int x, int y)
void PutPixel (int x, int y, unsigned int pixel)
unsigned char* Data ()
int Height ()
int Width ()
int Pitch ()
int BPP ()
int Load (const char *szFilename)
int LoadTGA (const char *szFilename)
int LoadSPR (const char *szFilename)
int LoadRAW (const char *szFilename, int iWidth, int iHeight, int ibpp)
int Save (const char *szFilename, int iWidth, int iHeight, int ibpp)
int SaveRAW (const char *szFilename)

Public Attributes

unsigned char* m_pData
int m_iWidth
int m_iHeight
int m_ibpp
int m_ipixwidth
int m_ipitch


Detailed Description

Generic image loading/manipulation class. Currently only loads TGA's.


The documentation for this class was generated from the following file:

http://www.scorpioncity.com/djgame.html
Copyright (C) David Joffe. Generated: 15 Jul 2001