7 #ifndef CAFU_BITMAP_LIB_HPP_INCLUDED
8 #define CAFU_BITMAP_LIB_HPP_INCLUDED
10 #include "Templates/Array.hpp"
12 #if defined(_WIN32) && _MSC_VER<1600
43 BitmapT(
unsigned int Width,
unsigned int Height,
const uint32_t* Buffer=NULL);
51 void GetPixel(
unsigned int x,
unsigned int y,
int& r,
int& g,
int& b)
const;
52 void SetPixel(
unsigned int x,
unsigned int y,
int r,
int g,
int b);
53 void GetPixel(
unsigned int x,
unsigned int y,
int& r,
int& g,
int& b,
int& a)
const;
54 void SetPixel(
unsigned int x,
unsigned int y,
int r,
int g,
int b,
int a);
58 void GetPixel(
unsigned int x,
unsigned int y,
float& r,
float& g,
float& b)
const;
59 void SetPixel(
unsigned int x,
unsigned int y,
float r,
float g,
float b);
60 void GetPixel(
unsigned int x,
unsigned int y,
float& r,
float& g,
float& b,
float& a)
const;
61 void SetPixel(
unsigned int x,
unsigned int y,
float r,
float g,
float b,
float a);
69 void Scale(
unsigned int NewSizeX,
unsigned int NewSizeY);
bool SaveToDisk(const char *FileName) const
Writes the contents of this bitmap into a file with name 'FileName'.
Definition: Bitmap.cpp:1250
char * GetPalettedImage() const
This functions computes a paletted (8 BPP) image from this bitmap, using the NeuQuant Neural-Net quan...
Definition: Bitmap.cpp:737
void ApplyGamma(float Gamma)
This method applies the gamma value 'Gamma' to this bitmap.
Definition: Bitmap.cpp:555
Definition: Bitmap.hpp:22
This class represents a RGBA bitmap.
Definition: Bitmap.hpp:20
static BitmapT GetBuiltInFileNotFoundBitmap()
Named constructor which returns a built-in "?FILE NOT FOUND" bitmap.
Definition: Bitmap.cpp:435
void Scale(unsigned int NewSizeX, unsigned int NewSizeY)
Scales the bitmap to the new dimensions NewSizeX and NewSizeY.
Definition: Bitmap.cpp:590
void GetPixel(unsigned int x, unsigned int y, int &r, int &g, int &b) const
These methods return and accept values in the range from 0 to 255.
Definition: Bitmap.cpp:449
BitmapT()
Constructor that creates an empty bitmap.
Definition: Bitmap.cpp:81