Main Page Class Hierarchy Compound List Compound Members Related Pages
Bitmap Class ReferenceThis class is the abstract basis class (aka Interface) for implementing bitmap support for the raytracer.
More...
#include <Bitmap.h>
Inheritance diagram for Bitmap
[legend]List of all members.
Public Methods |
|
| Bitmap () |
|
virtual | ~Bitmap () |
| virtual void | getPixel (float x,float y,float &r,float &g,float &b,float &a)=0 |
| | Return the color of the image. More...
|
| virtual bool | load (const char *filename)=0 |
| | DEPRECIATED! loads an image. More...
|
Detailed Description
This class is the abstract basis class (aka Interface) for implementing bitmap support for the raytracer.
To encapsulate an image library this interface is derived. The bitmap is quadratic and size of 1. Therefore the routines for retrieving the color of a pixel use floats for the coordinates. -
Author(s):
-
Stefan Michel
-
See also:
-
BitmapFactory , BitmapImageLib , BitmapFactoryImageLib
Member Function Documentation
|
void Bitmap::getPixel (
|
float x,
|
|
float y,
|
|
float & r,
|
|
float & g,
|
|
float & b,
|
|
float & a ) [pure virtual]
|
|
|
|
Return the color of the image.
As the image has the size of 1x1 the coordinates are providet with floats. -
Parameters:
-
| x
|
x-coordinate of pixel to be retrieved. The value must be in the intervall of 0..1 |
| y
|
y-coordinate of pixel to be retrieved. The value must be in the intervall of 0..1 |
| r
|
return value: the red component of the color at the given coordinate |
| g
|
return value: the green component of the color at the given coordinate |
| b
|
return value: the blue component of the color at the given coordinate |
| a
|
return value: the alpha component of the color at the given coordinate |
|
|
bool Bitmap::load (
|
const char * filename ) [pure virtual]
|
|
|
|
DEPRECIATED! loads an image.
-
Parameters:
-
| filename
|
path and filename of an valid file. The underlying engine has to support the fileformat |
|
The documentation for this class was generated from the following file:
|