Hierarchical Edge Bundle 1.0
|
#include <Image.h>
Public Member Functions | |
Image () | |
~Image () | |
bool | IsImageLoad () |
bool | LoadImg (ILenum Type, char *FileName) |
int | GetWidth () |
int | GetHeight () |
ILubyte * | GetData () |
Static Public Member Functions | |
static ILfloat * | LoadImgGetFloat (ILenum Type, char *FileName, int &width, int &height) |
Public Attributes | |
ILuint | handle |
double | id |
Static Public Attributes | |
static std::vector< Image * > | images |
This class provides method to load images. It use the DevIL package to read the images.
Image::Image | ( | ) | [inline] |
Standardconstructor
Image::~Image | ( | ) | [inline] |
Standarddeconstructor
ILubyte * Image::GetData | ( | ) |
This method returns the data of the image
int Image::GetHeight | ( | ) |
This method returns the height of the image
int Image::GetWidth | ( | ) |
This method returns the width of the image
bool Image::IsImageLoad | ( | ) |
This method returns true, if a images is loaded, or false, if no image is loaded.
bool Image::LoadImg | ( | ILenum | Type, |
char * | FileName | ||
) |
This method reads a image.
Type | [ILenum] file extension of the type |
FileName | [char *] path to the image |
ILfloat * Image::LoadImgGetFloat | ( | ILenum | Type, |
char * | FileName, | ||
int & | width, | ||
int & | height | ||
) | [static] |
This method reads a image and returns the data.
Type | [ILenum] file extension of the type |
FileName | [char *] path to the image |
ILuint Image::handle |
double Image::id |
std::vector< Image * > Image::images [static] |