#include <image.h>
|
| Image (const Size &size, int bpp=4, uint8 *pixels=nullptr) |
|
void | savePNG (const std::string &fileName) |
|
void | overwriteMask (const Color &maskedColor, const Color &insideColor=Color::white, const Color &outsideColor=Color::alpha) |
|
void | blit (const Point &dest, const ImagePtr &other) |
|
void | paste (const ImagePtr &other) |
|
void | resize (const Size &size) |
|
bool | nextMipmap () |
|
void | setPixel (int x, int y, uint8 *pixel) |
|
void | setPixel (int x, int y, const Color &color) |
|
std::vector< uint8 > & | getPixels () |
|
uint8 * | getPixelData () |
|
int | getPixelCount () |
|
const Size & | getSize () |
|
int | getWidth () |
|
int | getHeight () |
|
int | getBpp () |
|
uint8 * | getPixel (int x, int y) |
|
| shared_object () |
|
virtual | ~shared_object () |
|
void | add_ref () |
|
void | dec_ref () |
|
refcount_t | ref_count () |
|
template<typename T > |
stdext::shared_object_ptr< T > | static_self_cast () |
|
template<typename T > |
stdext::shared_object_ptr< T > | dynamic_self_cast () |
|
template<typename T > |
stdext::shared_object_ptr< T > | const_self_cast () |
|
Definition at line 29 of file image.h.
◆ Image()
Image::Image |
( |
const Size & |
size, |
|
|
int |
bpp = 4 , |
|
|
uint8 * |
pixels = nullptr |
|
) |
| |
◆ blit()
◆ getBpp()
◆ getHeight()
◆ getPixel()
uint8* Image::getPixel |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
◆ getPixelCount()
int Image::getPixelCount |
( |
| ) |
|
|
inline |
◆ getPixelData()
uint8* Image::getPixelData |
( |
| ) |
|
|
inline |
◆ getPixels()
std::vector<uint8>& Image::getPixels |
( |
| ) |
|
|
inline |
◆ getSize()
const Size& Image::getSize |
( |
| ) |
|
|
inline |
◆ getWidth()
◆ load()
ImagePtr Image::load |
( |
std::string |
file | ) |
|
|
static |
◆ loadPNG()
ImagePtr Image::loadPNG |
( |
const std::string & |
file | ) |
|
|
static |
◆ nextMipmap()
bool Image::nextMipmap |
( |
| ) |
|
◆ overwriteMask()
◆ paste()
void Image::paste |
( |
const ImagePtr & |
other | ) |
|
◆ resize()
void Image::resize |
( |
const Size & |
size | ) |
|
|
inline |
◆ savePNG()
void Image::savePNG |
( |
const std::string & |
fileName | ) |
|
◆ setPixel() [1/2]
void Image::setPixel |
( |
int |
x, |
|
|
int |
y, |
|
|
const Color & |
color |
|
) |
| |
|
inline |
◆ setPixel() [2/2]
void Image::setPixel |
( |
int |
x, |
|
|
int |
y, |
|
|
uint8 * |
pixel |
|
) |
| |
|
inline |
The documentation for this class was generated from the following files: