|
gKit2 light
|
Files | |
| file | src/gKit/color.h |
| file | src/gKit/image.h |
| file | src/gKit/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. | |
| Color | White () |
| utilitaire. renvoie une couleur blanche. | |
| Color | Red () |
| utilitaire. renvoie une couleur rouge. | |
| Color | Green () |
| utilitaire. renvoie une couleur verte. | |
| Color | Blue () |
| utilitaire. renvoie une couleur bleue. | |
| Color | Yellow () |
| utilitaire. renvoie une couleur jaune. | |
| 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 | srgb (const Color &color) |
| transformation couleur : rgb lineaire vers srgb | |
| Color | linear (const Color &color) |
| transformation couleur : srgb vers rgb lineaire | |
| Color | abs (const Color &color) |
| Image | read_image (const char *filename, const bool flipY=true) |
| Image | read_image_hdr (const char *filename, const bool flipY=true) |
| unsigned | read_image_size (const char *filename) |
| renvoie la taille en octets de l'image chargee. ou 0 si erreur. | |
| bool | write_image (const Image &image, const char *filename, const bool flipY=true) |
| enregistre une image au format .png | |
| bool | write_image_png (const Image &image, const char *filename, const bool flipY=true) |
| enregistre une image au format .png | |
| bool | write_image_bmp (const Image &image, const char *filename, const bool flipY=true) |
| enregistre une image au format .bmp | |
| bool | write_image_hdr (const Image &image, const char *filename, const bool flipY=true) |
| enregistre une image au format .hdr | |
| bool | write_image_preview (const Image &image, const char *filename, const bool flipY=true) |
| raccourci pour write_image_png(tone(image, range(image)), "image.png") | |
| Image | mipmap (const Image &image) |
| reduit une image. | |
| Image | srgb (const Image &image) |
| transformation couleur : rgb lineaire vers srgb | |
| Image | linear (const Image &image) |
| transformation couleur : srgb vers rgb lineaire | |
| Image | flipY (const Image &image) |
| retourne l'image | |
| Image | flipX (const Image &image) |
| retourne l'image | |
| Image | copy (const Image &image, const unsigned xmin, const unsigned ymin, const unsigned width, const unsigned height) |
| renvoie un bloc de l'image | |
| ImageData | read_image_data (const char *filename, const bool flipY=true) |
| charge les donnees d'un fichier png. renvoie une image initialisee par defaut en cas d'echec. | |
| int | write_image_data (ImageData &image, const char *filename, const bool flipY=true) |
| enregistre des donnees dans un fichier png. | |
| ImageData | read_image_data (const void *buffer, const unsigned size, const bool flipY=true) |
| charge les donnees d'un fichier png stocke en memoire. renvoie une image initialisee par defaut en cas d'echec. | |
| ImageData | flipY (const ImageData &image) |
| retourne l'image | |
| ImageData | flipX (const ImageData &image) |
| retourne l'image | |
| ImageData | copy (const ImageData &image, const unsigned xmin, const unsigned ymin, const unsigned width, const unsigned height) |
| renvoie un bloc de l'image | |
| ImageData | mipmap (const ImageData &image) |
| renvoie une image filtree plus petite. | |
| int | miplevels (const int width, const int height) |
| renvoie le nombre de mipmap d'une image width x height. | |
| Color Black | ( | ) |
| Color White | ( | ) |
| Color Red | ( | ) |
| Color Green | ( | ) |
| Color Blue | ( | ) |
| Color Yellow | ( | ) |
| Image read_image | ( | const char * | filename, |
| const bool | flipY = true ) |
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 171 of file image_io.cpp.
| Image read_image_hdr | ( | const char * | filename, |
| const bool | flipY = true ) |
Definition at line 193 of file image_io.cpp.
| unsigned read_image_size | ( | const char * | filename | ) |
renvoie la taille en octets de l'image chargee. ou 0 si erreur.
Definition at line 162 of file image_io.cpp.
| bool write_image | ( | const Image & | image, |
| const char * | filename, | ||
| const bool | flipY = true ) |
enregistre une image au format .png
Definition at line 225 of file image_io.cpp.
| bool write_image_png | ( | const Image & | image, |
| const char * | filename, | ||
| const bool | flipY = true ) |
enregistre une image au format .png
Definition at line 206 of file image_io.cpp.
| bool write_image_bmp | ( | const Image & | image, |
| const char * | filename, | ||
| const bool | flipY = true ) |
enregistre une image au format .bmp
Definition at line 230 of file image_io.cpp.
| bool write_image_hdr | ( | const Image & | image, |
| const char * | filename, | ||
| const bool | flipY = true ) |
enregistre une image au format .hdr
Definition at line 249 of file image_io.cpp.
| bool write_image_preview | ( | const Image & | image, |
| const char * | filename, | ||
| const bool | flipY = true ) |
raccourci pour write_image_png(tone(image, range(image)), "image.png")
Definition at line 258 of file image_io.cpp.
reduit une image.
Definition at line 94 of file image_io.cpp.
transformation couleur : rgb lineaire vers srgb
Definition at line 15 of file image_io.cpp.
transformation couleur : srgb vers rgb lineaire
Definition at line 25 of file image_io.cpp.
retourne l'image
Definition at line 112 of file image_io.cpp.
retourne l'image
Definition at line 129 of file image_io.cpp.
| Image copy | ( | const Image & | image, |
| const unsigned | xmin, | ||
| const unsigned | ymin, | ||
| const unsigned | width, | ||
| const unsigned | height ) |
renvoie un bloc de l'image
Definition at line 145 of file image_io.cpp.
| ImageData read_image_data | ( | const char * | filename, |
| const bool | flipY = true ) |
charge les donnees d'un fichier png. renvoie une image initialisee par defaut en cas d'echec.
Definition at line 330 of file image_io.cpp.
| int write_image_data | ( | ImageData & | image, |
| const char * | filename, | ||
| const bool | flipY = true ) |
enregistre des donnees dans un fichier png.
Definition at line 346 of file image_io.cpp.
| ImageData read_image_data | ( | const void * | buffer, |
| const unsigned | size, | ||
| const bool | flipY = true ) |
charge les donnees d'un fichier png stocke en memoire. renvoie une image initialisee par defaut en cas d'echec.
Definition at line 315 of file image_io.cpp.
retourne l'image
Definition at line 376 of file image_io.cpp.
retourne l'image
Definition at line 394 of file image_io.cpp.
| ImageData copy | ( | const ImageData & | image, |
| const unsigned | xmin, | ||
| const unsigned | ymin, | ||
| const unsigned | width, | ||
| const unsigned | height ) |
renvoie un bloc de l'image
Definition at line 411 of file image_io.cpp.
| int miplevels | ( | const int | width, |
| const int | height ) |
renvoie le nombre de mipmap d'une image width x height.
Definition at line 453 of file image_io.cpp.