gKitGL
 All Classes Namespaces Functions Variables Typedefs Enumerator Friends
Public Types | Public Member Functions
gk::TImage< T > Class Template Reference

utilisation interne. More...

#include <Image.h>

Inheritance diagram for gk::TImage< T >:
gk::IOResource

List of all members.

Public Types

typedef T pixel

Public Member Functions

 TImage (const unsigned int width, const unsigned int height, const void *data=NULL)
 construction d'une image de dimension width x height.
 ~TImage ()
 destructeur.
bool isColorImage () const
bool isHdrImage () const
void * data ()
 renvoie les donnees brutes de l'image.
const void * data () const
 renvoie les donnees brutes de l'image.
unsigned int width () const
 renvoie la largeur de l'image.
unsigned int height () const
 renvoie la hauteur de l'image.
void setPixel (const unsigned int x, const unsigned int y, const T &color)
 remplace la couleur d'un pixel.
operator() (const unsigned int x, const unsigned int y) const
T & operator() (const unsigned int x, const unsigned int y)
const T & getPixel (const unsigned int x, const unsigned int y) const
 renvoie la couleur d'un pixel.

Detailed Description

template<class T>
class gk::TImage< T >

utilisation interne.

representation d'une image, parametree par le type de pixel, cf. gk::Pixel et gk::HDRPixel. utiliser gk::Image et gk::HDRImage.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerator Friends