class ImageDiskXFile

This class is designed to handle an image file on the disk

Inheritance:


Public Fields

[more] data field
[more] image size fields
[more] other fields

Public Methods

[more] constructors and destructor
[more] read/write image header and image pixmap


Documentation

This class is designed to handle an image file on the disk

o data field

ounsigned char* pixmap
loaded image

o image size fields

oint width
width of the image

oint height
height of the image

oint n_planes
number of color components

o other fields

ochar* filename
filename of the image

ochar* coding
coding of the colorspace

obool verbose

o constructors and destructor

o ImageDiskXFile(const char* file_name, const char* open_flags)
Makes a ImageDiskXFile from an filename.

Parameters:
file_name - is the filename of the image
- open_flags is the opening mode of the file

o ImageDiskXFile()
Empty constructor

ovirtual ~ImageDiskXFile()
Destructor

o read/write image header and image pixmap

ovirtual bool readHeader(int* width_, int* height_) = 0
read the header from the file.

Parameters:
width_ - is the width of the image read in the header
height_ - is the height of the image read in the header

ovirtual int readPixmap() = 0
read the pixmap from the file

ovirtual bool writeHeader(int width_, int height_) = 0
write the header from the file.

Parameters:
width_ - is the width of the image written in the header
height_ - is the height of the image written in the header

ovirtual int writePixmap(unsigned char* pixmap_) = 0
write the pixmap_ into the file


Direct child classes:
xtprobeImageDiskXFile
tiffDiskXFile
ppmDiskXFile
pgmDiskXFile
jpegDiskXFile
gifDiskXFile
Author:
Sebastien Marcel (marcel@idiap.ch)
Version:
2.0 Fri 15 Jul 2005 11:35:11 AM CEST
Since:
1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.