|
Aegis
4.25.D505
|
00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1997, 2002-2006, 2008, 2012 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or (at 00008 // your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 // General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 // 00018 00019 #ifndef LIBAEGIS_GIF_H 00020 #define LIBAEGIS_GIF_H 00021 00022 enum gif_mode_ty 00023 { 00024 gif_mode_rdonly, 00025 gif_mode_rdwr 00026 }; 00027 00028 struct gif_ty 00029 { 00030 char *fn; 00031 int width; 00032 int height; 00033 unsigned char colormap[256][3]; 00034 unsigned char *image_flat; 00035 unsigned char **image; 00036 gif_mode_ty mode; 00037 int mime; 00038 }; 00039 00040 gif_ty *gif_open(const char *path, int mode); 00041 void gif_close(gif_ty *); 00042 gif_ty *gif_create(const char *path, int size_x, int size_y); 00043 void gif_rename(gif_ty *, const char *); 00044 int gif_pixel_get(gif_ty *gp, int x, int y); 00045 void gif_pixel_set(gif_ty *gp, int x, int y, int color); 00046 void gif_colormap_get(gif_ty *, int, int *, int *, int *); 00047 void gif_colormap_set(gif_ty *, int, int, int, int); 00048 void gif_mime(gif_ty *); 00049 00050 void gif_line(gif_ty *gp, int x1, int y1, int x2, int y2, int color); 00051 void gif_rect(gif_ty *gp, int x1, int y1, int x2, int y2, int color); 00052 void gif_text(gif_ty *gp, int x, int y, const char *text, int color); 00053 00054 #endif // LIBAEGIS_GIF_H 00055 // vim: set ts=8 sw=4 et :
1.7.6.1