You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
796 B

/*
* =====================================================================================
*
* Filename: bitmap.h
*
* Description: Stores a bitmap
*
* Version: 1.0
* Created: 04/02/2014 07:19:09 PM
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#pragma once
#include <string>
namespace vtk {
class Bitmap {
public:
Bitmap();
bool loadFromFile(const std::string& fileName);
unsigned char* getPixelDataPtr();
int getHeight();
int getWidth();
int getNumChannels();
void flipVertical();
protected:
unsigned char* imageData;
int x, y, n;
int forceChannels;
};
}