xgetshape

view src/image.h @ 1:9b560415bad4

blured shadow
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 03 Nov 2015 04:08:32 +0200
parents
children
line source
1 #ifndef IMAGE_H_
2 #define IMAGE_H_
4 struct image {
5 int width, height;
6 unsigned char *pixels;
7 };
9 int image_create(struct image *img, int w, int h);
10 void image_destroy(struct image *img);
12 int image_save(struct image *img, const char *rgbname, const char *aname);
14 int image_clear(struct image *img, int r, int g, int b, int a);
15 int image_fillrect(struct image *img, int x, int y, int w, int h, int r, int g, int b, int a);
16 int image_chess(struct image *img, int sz, int r0, int g0, int b0, int r1, int g1, int b1);
18 #endif /* IMAGE_H_ */