egami::Image Class Reference
Public Member Functions | |
Image () | |
Image (const ivec2 &_size, enum colorType _type=egami::colorType::undefined) | |
void | configure (const ivec2 &_size=ivec2(32, 32), enum colorType _type=egami::colorType::RGBA8) |
void * | getTextureDataPointer () |
enum colorType | getType () const |
bool | exist () |
void | resize (const ivec2 &_size, const ivec2 &_startPos=ivec2(0, 0)) |
void | resize (const ivec2 &_size, const etk::Color<> &_color, const ivec2 &_startPos=ivec2(0, 0)) |
void | resize (const ivec2 &_size, const etk::Color< float > &_color, const ivec2 &_startPos=ivec2(0, 0)) |
void | resize (const ivec2 &_size, const etk::Color< uint16_t, 1 > &_color, const ivec2 &_startPos=ivec2(0, 0)) |
void | resize (const ivec2 &_size, const etk::Color< uint32_t, 1 > &_color, const ivec2 &_startPos=ivec2(0, 0)) |
void | resize (const ivec2 &_size, const etk::Color< float, 1 > &_color, const ivec2 &_startPos=ivec2(0, 0)) |
void | resize (const ivec2 &_size, const etk::Color< double, 1 > &_color, const ivec2 &_startPos=ivec2(0, 0)) |
const ivec2 & | getSize () const |
int32_t | getWidth () const |
int32_t | getHeight () const |
void | clear (const etk::Color<> &_color) |
void | clear (const etk::Color< float > &_color) |
void | clear (const etk::Color< uint16_t, 1 > &_color) |
void | clear (const etk::Color< uint32_t, 1 > &_color) |
void | clear (const etk::Color< float, 1 > &_color) |
void | clear (const etk::Color< double, 1 > &_color) |
etk::Color | get (const ivec2 &_pos) const |
void | set (const ivec2 &_pos, const etk::Color<> &_newColor) |
void | set (const ivec2 &_pos, const etk::Color< float > &_newColor) |
void | set (const ivec2 &_pos, const etk::Color< uint16_t, 1 > &_newColor) |
void | set (const ivec2 &_pos, const etk::Color< uint32_t, 1 > &_newColor) |
void | set (const ivec2 &_pos, const etk::Color< float, 1 > &_newColor) |
void | set (const ivec2 &_pos, const etk::Color< double, 1 > &_newColor) |
void | insert (const ivec2 &_pos, const egami::Image &_input) |
void | scale (const ivec2 &_size) |
void | set (const std::vector< etk::Color< float, 4 >> &_data, const ivec2 &_size) |
void | set (const std::vector< etk::Color< uint8_t, 4 >> &_data, const ivec2 &_size) |
Constructor & Destructor Documentation
§ Image()
egami::Image::Image | ( | ) |
contructor that create an empty image (no valid data)
- Note
- use configure to set a correct image
Member Function Documentation
§ scale()
void egami::Image::scale | ( | const ivec2 & | _size | ) |
Scale an image in an other dimention.
- Parameters
-
[in] _size Destination size of the image. Set this function more capacity like not a multiple ratio...
The documentation for this class was generated from the following file:
- framework/atria-soft/egami/egami/Image.hpp