Bitmap.h
author viric@llimona
Thu, 18 May 2006 23:12:51 +0200
changeset 0 6b8091ca909a
permissions -rw-r--r--
Init from working directory of svn repository.

#ifndef __BITMAP_H__
#define __BITMAP_H__

#include "Histogram.h"
#include <vector>

using namespace std;

class Bitmap
{
	int width;
	int height;
	vector<int> *PointsPerLine;
	vector<int> *PointsPerColumn;

public:
	Bitmap(int w, int h);
	~Bitmap();

	void setToZero();

	int get_width() const { return width; };
	int get_height() const { return height;};
	
	int points_per_row(int row);
	int points_per_column(int column);
	void calcHistogram(Histogram* &myhist);
	
	char **pixels;
};

#endif