Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

InSpace::Image Class Reference

#include <pnm_image.H>

List of all members.

Public Member Functions

 Image ()
 Image (Cstr_ptr &file)
 Image (cImage &img)
 Image (uint w, uint h, uint bpp, uchar *data, bool nd=1)
 Image (uint w, uint h, uint bpp)
void operator= (const Image &img)
void set (int w, int h, uint bpp, uchar *data, bool nd=1)
void clear ()
int resize (uint w, uint h, uint b)
int copy_tile (const Image &tile, uint i, uint j)
virtual ~Image ()
int width () const
int height () const
uint bpp () const
int size () const
int row_size () const
point2i dims () const
uchardata () const
ucharrow (int k) const
Cstr_ptrfile () const
ucharcopy () const
bool empty () const
void expand_power2 ()
int resize_rows_mult_4 ()
int load_file (Cstr_ptr &file)
int read_png (Cstr_ptr &file)
int write_png (char *file) const
int read_pnm (Cstr_ptr &file)
int read_pnm (istream &in)
int read_pgm (istream &in, bool ascii)
int read_ppm (istream &in, bool ascii)
int write_pnm (char *file, bool ascii=false) const
int write_pnm (ostream &os, bool ascii) const

Static Public Member Functions

int write_png (int w, int h, uint bpp, uchar *data, Cstr_ptr &file)

Protected Types

enum  { PNG_BYTES_TO_CHECK = 8 }

Protected Member Functions

FILE * open_png (char *file)

Protected Attributes

uint _width
uint _height
uint _bpp
bool _no_delete
str_ptr _file


ostream & operator<< (ostream &os, cImage &img)
istream & operator>> (istream &is, Image &img)

Member Enumeration Documentation

anonymous enum [protected]

Enumeration values:

Constructor & Destructor Documentation

InSpace::Image::Image  )  [inline]

InSpace::Image::Image Cstr_ptr file  )  [inline]

InSpace::Image::Image cImage img  )  [inline]

InSpace::Image::Image uint  w,
uint  h,
uint  bpp,
uchar data,
bool  nd = 1

InSpace::Image::Image uint  w,
uint  h,
uint  bpp

virtual InSpace::Image::~Image  )  [inline, virtual]

Member Function Documentation

uint InSpace::Image::bpp  )  const [inline]

void InSpace::Image::clear  )  [inline]

uchar* InSpace::Image::copy  )  const

int InSpace::Image::copy_tile const Image tile,
uint  i,
uint  j

uchar* InSpace::Image::data  )  const [inline]

point2i InSpace::Image::dims  )  const [inline]

bool InSpace::Image::empty  )  const [inline]

void InSpace::Image::expand_power2  ) 

Cstr_ptr& InSpace::Image::file  )  const [inline]

int InSpace::Image::height  )  const [inline]

int InSpace::Image::load_file Cstr_ptr file  ) 

FILE* InSpace::Image::open_png char *  file  )  [protected]

void InSpace::Image::operator= const Image img  )  [inline]

int InSpace::Image::read_pgm istream &  in,
bool  ascii

int InSpace::Image::read_png Cstr_ptr file  ) 

int InSpace::Image::read_pnm istream &  in  ) 

int InSpace::Image::read_pnm Cstr_ptr file  ) 

int InSpace::Image::read_ppm istream &  in,
bool  ascii

int InSpace::Image::resize uint  w,
uint  h,
uint  b

int InSpace::Image::resize_rows_mult_4  ) 

uchar* InSpace::Image::row int  k  )  const [inline]

int InSpace::Image::row_size  )  const [inline]

void InSpace::Image::set int  w,
int  h,
uint  bpp,
uchar data,
bool  nd = 1

int InSpace::Image::size  )  const [inline]

int InSpace::Image::width  )  const [inline]

int InSpace::Image::write_png int  w,
int  h,
uint  bpp,
uchar data,
Cstr_ptr file
[inline, static]

int InSpace::Image::write_png char *  file  )  const

int InSpace::Image::write_pnm ostream &  os,
bool  ascii

int InSpace::Image::write_pnm char *  file,
bool  ascii = false

Friends And Related Function Documentation

ostream& operator<< ostream &  os,
cImage img

istream& operator>> istream &  is,
Image img

Member Data Documentation

uint InSpace::Image::_bpp [protected]

uchar* InSpace::Image::_data [protected]

str_ptr InSpace::Image::_file [protected]

uint InSpace::Image::_height [protected]

bool InSpace::Image::_no_delete [protected]

uint InSpace::Image::_width [protected]

The documentation for this class was generated from the following file:
Generated on Thu Jul 8 15:19:30 2004 for inspace by doxygen 1.3.4