|
gKit2 light
|
Files | |
| file | color.h |
| file | image.h |
| file | image_io.h |
Classes | |
| struct | Color |
| representation d'une couleur (rgba) transparente ou opaque. More... | |
| class | Image |
| representation d'une image. More... | |
| struct | ImageData |
| stockage temporaire des donnees d'une image. More... | |
Functions | |
| Color | Black () |
| utilitaire. renvoie une couleur noire. More... | |
| Color | White () |
| utilitaire. renvoie une couleur blanche. More... | |
| Color | Red () |
| utilitaire. renvoie une couleur rouge. More... | |
| Color | Green () |
| utilitaire. renvoie une couleur verte. More... | |
| Color | Blue () |
| utilitaire. renvoie une couleur bleue. More... | |
| Color | Yellow () |
| utilitaire. renvoie une couleur jaune. More... | |
| Color | operator+ (const Color &a, const Color &b) |
| Color | operator- (const Color &a, const Color &b) |
| Color | operator- (const Color &c) |
| Color | operator* (const Color &a, const Color &b) |
| Color | operator* (const Color &c, const float k) |
| Color | operator* (const float k, const Color &c) |
| Color | operator/ (const Color &a, const Color &b) |
| Color | operator/ (const float k, const Color &c) |
| Color | operator/ (const Color &c, const float k) |
| Color | linear (const Color &color) |
| correction gamma : srgb vers rgb lineare. More... | |
| Color | srgb (const Color &color) |
| correction gamma : rgb lineaire vers srgb. More... | |
| Image | read_image (const char *filename) |
| int | write_image (const Image &image, const char *filename) |
| enregistre une image dans un fichier png. More... | |
| Image | flipY (const Image &image) |
| retourne l'image More... | |
| Image | flipX (const Image &image) |
| retourne l'image More... | |
| Image | copy (const Image &image, const int xmin, const int ymin, const int width, const int height) |
| renvoie un bloc de l'image More... | |
| ImageData | image_data (SDL_Surface *surface) |
| converti une surface SDL en imageData, cf RWops pour charger les images deja en memoire. More... | |
| ImageData | read_image_data (const char *filename) |
| charge les donnees d'un fichier png. renvoie une image initialisee par defaut en cas d'echec. More... | |
| int | write_image_data (ImageData &image, const char *filename) |
| enregistre des donnees dans un fichier png. More... | |
| ImageData | flipY (const ImageData &image) |
| retourne l'image More... | |
| ImageData | flipX (const ImageData &image) |
| retourne l'image More... | |
| ImageData | copy (const ImageData &image, const int xmin, const int ymin, const int width, const int height) |
| renvoie un bloc de l'image More... | |
| ImageData | downscale (const ImageData &image) |
| renvoie une image filtree plus petite. More... | |
| Image | downscale (const Image &image) |
| renvoie une image filtree plus petite. More... | |
| Image | srgb (const Image &image) |
| conversion de rgb lineaire vers srgb. More... | |
| Image | linear (const Image &image) |
| conversion de srgb vers rgb lineaire. necessaire pour les images couleurs. More... | |
| Color White | ( | ) |
| Color Red | ( | ) |
| Color Green | ( | ) |
| Color Blue | ( | ) |
| Color Yellow | ( | ) |
| Image read_image | ( | const char * | filename | ) |
charge une image a partir d'un fichier. renvoie Image::error() en cas d'echec. a detruire avec image::release( ).
| filemane | nom de l'image a charger |
Definition at line 18 of file image_io.cpp.
| int write_image | ( | const Image & | image, |
| const char * | filename | ||
| ) |
enregistre une image dans un fichier png.
Definition at line 85 of file image_io.cpp.
retourne l'image
Definition at line 295 of file image_io.cpp.
retourne l'image
Definition at line 312 of file image_io.cpp.
| Image copy | ( | const Image & | image, |
| const int | xmin, | ||
| const int | ymin, | ||
| const int | width, | ||
| const int | height | ||
| ) |
renvoie un bloc de l'image
Definition at line 328 of file image_io.cpp.
| ImageData image_data | ( | SDL_Surface * | surface | ) |
converti une surface SDL en imageData, cf RWops pour charger les images deja en memoire.
Definition at line 141 of file image_io.cpp.
| ImageData read_image_data | ( | const char * | filename | ) |
charge les donnees d'un fichier png. renvoie une image initialisee par defaut en cas d'echec.
Definition at line 216 of file image_io.cpp.
| int write_image_data | ( | ImageData & | image, |
| const char * | filename | ||
| ) |
enregistre des donnees dans un fichier png.
Definition at line 229 of file image_io.cpp.
| ImageData copy | ( | const ImageData & | image, |
| const int | xmin, | ||
| const int | ymin, | ||
| const int | width, | ||
| const int | height | ||
| ) |
renvoie une image filtree plus petite.
Definition at line 397 of file image_io.cpp.
renvoie une image filtree plus petite.
Definition at line 416 of file image_io.cpp.
conversion de srgb vers rgb lineaire. necessaire pour les images couleurs.
Definition at line 440 of file image_io.cpp.