File: image.h

package info (click to toggle)
amoeba 1.1-13
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 732 kB
  • ctags: 971
  • sloc: cpp: 8,315; makefile: 178
file content (26 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (12)
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 */