next up previous
suivant: Fonctions avancées : bitmaps monter: More1 précédent: Entrée/Sorties

Entrée/Sortie Images

Sont valides les formats reconnus par la fonction convert du package logiciel ImageMagick (cf man convert). Entre autres, JPEG, GIF, PPM, PGM, et TIF. Les fonctions retournent 1 en cas d'erreur, 0 sinon. Les tableaux dynamiques alloués par les fonctions winLoad...Image() doivent être libérés par l'utilisateur avec delete[].


int  winLoadColorImage(const string& name, 
                       byte *&r, byte *&g, byte *&b, int& w, int& h);
int  winLoadGreyImage(const string& name, byte *&g, int& w, int& h);
int  winSaveColorImage(const string& name, byte *r, byte *g, byte *b,
                       int w, int h);
int  winSaveGreyImage(const string& name, byte *g, int w, int h);



R Lalement
1999-09-16