File: image.h

package info (click to toggle)
amoeba 1.1-26
  • links: PTS
  • area: contrib
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,256 kB
  • ctags: 1,561
  • sloc: cpp: 8,315; makefile: 173
file content (26 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * virtual image class :-)
 */

#ifndef _IMAGE_H
#define _IMAGE_H

class Image {
public:
	Image();
	virtual ~Image();

	int get_width();
	int get_height();
	virtual unsigned char *get_pixel_data() = 0;
	int get_bpp();

protected:
	unsigned int width;
	unsigned int height;
	unsigned int bpp;
};

Image *load_image(const char * const filename);

#endif /* _IMAGE_H */