Changeset 523 for abuse/trunk/src/imlib/image.h
- Timestamp:
- Apr 22, 2011, 4:12:48 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/imlib/image.h
r521 r523 19 19 #define MAX_DIRTY 200 20 20 21 extern char const *imerr_messages[]; // correspond to imERRORS22 #define imREAD_ERROR 123 #define imINCORRECT_FILETYPE 224 #define imFILE_CORRUPTED 325 #define imFILE_NOT_FOUND 426 #define imMEMORY_ERROR 527 #define imNOT_SUPPORTED 628 #define imWRITE_ERROR 729 #define imMAX_ERROR 730 31 int16_t current_error();32 void clear_errors();33 void set_error(int16_t x);34 int16_t last_error();35 21 void image_init(); 36 22 void image_uninit(); 37 23 extern linked_list image_list; 38 39 typedef struct image_color_t40 {41 uint16_t r;42 uint16_t g;43 uint16_t b;44 } image_color;45 46 class filter;47 48 24 49 25 class dirty_rect : public linked_node … … 117 93 image_descriptor *m_special; 118 94 119 image(spec_entry *e, bFILE *fp); 120 image(bFILE *fp); 95 image(bFILE *fp, spec_entry *e = NULL); 121 96 image(vec2i size, uint8_t *page_buffer = NULL, int create_descriptor = 0); 122 97 ~image(); … … 136 111 return last_scan + m_size.x; 137 112 } 138 int32_t total_pixels(uint8_t background=0);139 113 image *copy(); // makes a copy of an image 140 114 void clear(int16_t color = -1); // -1 is background color 141 void to_24bit(palette &pal);142 115 143 116 vec2i Size() const { return m_size; } … … 197 170 image *create_smooth(int16_t smoothness = 1); // 0 no smoothness 198 171 void unpack_scanline(int16_t line, char bitsperpixel = 1); 199 uint8_t brightest_color(palette *pal);200 172 void flip_x(); 201 173 void flip_y(); 202 uint8_t darkest_color(palette *pal, int16_t noblack = 0);203 174 }; 204 175
Note: See TracChangeset
for help on using the changeset viewer.