annotate src/image.h @ 0:2f02f100b20f
getting the window shape of another window
author |
John Tsiombikas <nuclear@member.fsf.org> |
date |
Tue, 03 Nov 2015 00:42:08 +0200 |
parents |
|
children |
|
rev |
line source |
nuclear@0
|
1 #ifndef IMAGE_H_
|
nuclear@0
|
2 #define IMAGE_H_
|
nuclear@0
|
3
|
nuclear@0
|
4 struct image {
|
nuclear@0
|
5 int width, height;
|
nuclear@0
|
6 unsigned char *pixels;
|
nuclear@0
|
7 };
|
nuclear@0
|
8
|
nuclear@0
|
9 int image_create(struct image *img, int w, int h);
|
nuclear@0
|
10 void image_destroy(struct image *img);
|
nuclear@0
|
11
|
nuclear@0
|
12 int image_save(struct image *img, const char *rgbname, const char *aname);
|
nuclear@0
|
13
|
nuclear@0
|
14 int image_clear(struct image *img, int r, int g, int b, int a);
|
nuclear@0
|
15 int image_fillrect(struct image *img, int x, int y, int w, int h, int r, int g, int b, int a);
|
nuclear@0
|
16 int image_chess(struct image *img, int sz, int r0, int g0, int b0, int r1, int g1, int b1);
|
nuclear@0
|
17
|
nuclear@0
|
18 #endif /* IMAGE_H_ */
|