00001 /* Grafx2 - The Ultimate 256-color bitmap paint program 00002 00003 Copyright 2007 Adrien Destugues 00004 Copyright 1996-2001 Sunset Design (Guillaume Dorme & Karl Maritaud) 00005 00006 Grafx2 is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU General Public License 00008 as published by the Free Software Foundation; version 2 00009 of the License. 00010 00011 Grafx2 is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with Grafx2; if not, see <http://www.gnu.org/licenses/> or 00018 write to the Free Software Foundation, Inc., 00019 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 */ 00021 00022 void Pixel_Chargement_dans_ecran_courant(word Pos_X,word Pos_Y,byte Couleur); 00023 void Pixel_Chargement_dans_preview (word Pos_X,word Pos_Y,byte Couleur); 00024 void Pixel_Chargement_dans_brosse (word Pos_X,word Pos_Y,byte Couleur); 00025 00026 void Nom_fichier_complet(char * Nom_du_fichier, byte Sauve_Colorix); 00027 00028 void Charger_image(byte Image); 00029 void Sauver_image(byte Image); 00030 00031 typedef struct { 00032 char *Extension; 00033 fonction_action Test; 00034 fonction_action Load; 00035 fonction_action Save; 00036 byte Backup_done; // Le format enregistre toute l'image, on la considère à jour. 00037 byte Commentaire; // Le format de fichier autorise un commentaire. 00038 } T_Format; 00039 00040 // Tableau des formats connus 00041 extern T_Format FormatFichier[NB_FORMATS_CONNUS]; 00042 00043 // Fonction de sauvegarde en cas de probleme 00044 void Image_emergency_backup(void);
1.5.8