|
degate 0.1.1
|
The generic templated class for image objects. More...
#include <Image.h>

Public Member Functions | |
| Image (unsigned int _width, unsigned int _height) | |
| The constructor. | |
| virtual | ~Image () |
| The destructor. | |
| template<typename PixelTypeDst > | |
| PixelTypeDst | get_pixel_as (unsigned int x, unsigned int y) |
| Get pixel with conversion. | |
| template<typename PixelTypeSrc > | |
| void | set_pixel_as (unsigned int x, unsigned int y, PixelTypeSrc p) |
| Set pixel with conversion. | |
The generic templated class for image objects.
This class can be used with StoragePolicy_Memory and StoragePolicy_TempFile.
Every image constructor should have a two parameter version. This is necessary for image processing plugins, because plugins have to create temporary images. The two parameter constructor should then make reasonable default assumtions about storage. Temporary images are really always temporary. This means that we can create empty images in degate's temp directory. The constructor should only get the width and height of an image.
| degate::Image< PixelPolicy, StoragePolicy >::Image | ( | unsigned int | _width, |
| unsigned int | _height | ||
| ) | [inline] |
| virtual degate::Image< PixelPolicy, StoragePolicy >::~Image | ( | ) | [inline, virtual] |
| PixelTypeDst degate::Image< PixelPolicy, StoragePolicy >::get_pixel_as | ( | unsigned int | x, |
| unsigned int | y | ||
| ) | [inline] |
| void degate::Image< PixelPolicy, StoragePolicy >::set_pixel_as | ( | unsigned int | x, |
| unsigned int | y, | ||
| PixelTypeSrc | p | ||
| ) | [inline] |
1.7.4