class ImageGray

This class is designed to handle gray images

Inheritance:


Public Methods

[more] constructors and destructor
[more] copy methods
[more] load/save methods
[more] drawing methods


Inherited from Image:

Public Fields

data and pixmap fields

image size fields

other fields

Public Methods

synchronization methods

other methods

Protected Methods

ovoid imageRealloc()


Documentation

This class is designed to handle gray images

o constructors and destructor

o ImageGray()
Creates an empty gray image

o ImageGray(const char* filename_)
Creates a gray image from a file.

Parameters:
filename_ - is the filename of the image to load

o ImageGray(int width_, int height_)
Creates a black gray image.

Parameters:
width_ - is the width of the image
height_ - is the height of the image

ovirtual ~ImageGray()

o copy methods

ovirtual bool copyFrom(int width_, int height_, unsigned char* pixmap_, const char* coding_)
Copy from an image (in bytes).

Parameters:
width_ - is the width of the image to copy
height_ - is the height of the image to copy
pixmap_ - is the image (in bytes) to copy into pixmap and data
coding_ - is the coding of the pixmap_ to copy

ovirtual bool copyFrom(int width_, int height_, real* data_, const char* coding_, real max_ = 255.0)
Copy from an image (in real).

Parameters:
width_ - is the width of the image to copy
height_ - is the height of the image to copy
data_ - is the image (in real) to copy into pixmap and data
coding_ - is the coding of the data_ to copy
max_ - is the range of pixel values in data_

ovirtual bool copyFrom(Image* image_)
Copy an image from another image.

Parameters:
image_ - is the image to copy

o load/save methods

ovirtual void saveXFile(XFile* file)
save the image

ovirtual void loadXFile(XFile* file)
load the image

o drawing methods

ovirtual void drawpixel(int x_, int y_, Color c)
draw a pixel in the image.

Parameters:
x_ - is the x coordinate of the pixel to draw
y_ - is the y coordinate of the pixel to draw
c - is the color to draw


This class has no child classes.
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++.