25 lines
277 B
Plaintext
25 lines
277 B
Plaintext
|
|
ifndef IMAGES_H
|
|||
|
|
|
|||
|
|
#define IMAGES_H
|
|||
|
|
|
|||
|
|
|
|||
|
|
typedef struct {
|
|||
|
|
|
|||
|
|
/* dépend de la bibliothèque de l’IUT */
|
|||
|
|
|
|||
|
|
int width;
|
|||
|
|
|
|||
|
|
int height;
|
|||
|
|
|
|||
|
|
void* data;
|
|||
|
|
|
|||
|
|
} Image;
|
|||
|
|
|
|||
|
|
|
|||
|
|
Image load_image(const char* path);
|
|||
|
|
|
|||
|
|
void slice_image_into_tiles(const Image img, int rows, int cols);
|
|||
|
|
|
|||
|
|
|
|||
|
|
#endif
|