#include <image.h>
|
static Image * | fromMemoryEncoded (const uint8_t *data, size_t numBytes, bool flipVertically=false, Layout layoutDst=Layout::RGBA) |
|
static Image * | fromMemoryRaw (const uint8_t *data, int width, int height, Layout layout=Layout::RGBA) |
|
static Image * | fromEmpty (int width, int height, Layout layout=Layout::RGBA) |
|
static std::array< int, 3 > | decodeImageInfo (const uint8_t *data, size_t numBytes) |
|
static int | getNumChannelsFromLayout (Layout layout) |
|
◆ Layout
◆ Image()
yourgame::util::Image::Image |
( |
Image const & |
| ) |
|
|
delete |
◆ decodeImageInfo()
std::array< int, 3 > yourgame::util::Image::decodeImageInfo |
( |
const uint8_t * |
data, |
|
|
size_t |
numBytes |
|
) |
| |
|
static |
◆ fromEmpty()
◆ fromMemoryEncoded()
Image * yourgame::util::Image::fromMemoryEncoded |
( |
const uint8_t * |
data, |
|
|
size_t |
numBytes, |
|
|
bool |
flipVertically = false , |
|
|
Layout |
layoutDst = Layout::RGBA |
|
) |
| |
|
static |
◆ fromMemoryRaw()
Image * yourgame::util::Image::fromMemoryRaw |
( |
const uint8_t * |
data, |
|
|
int |
width, |
|
|
int |
height, |
|
|
Layout |
layout = Layout::RGBA |
|
) |
| |
|
static |
◆ getData()
const uint8_t * yourgame::util::Image::getData |
( |
| ) |
const |
◆ getHeight()
int yourgame::util::Image::getHeight |
( |
| ) |
const |
◆ getLayout()
◆ getNumChannels()
int yourgame::util::Image::getNumChannels |
( |
| ) |
const |
◆ getNumChannelsFromLayout()
int yourgame::util::Image::getNumChannelsFromLayout |
( |
Layout |
layout | ) |
|
|
static |
◆ getNumDemandedBytes()
size_t yourgame::util::Image::getNumDemandedBytes |
( |
| ) |
const |
◆ getWidth()
int yourgame::util::Image::getWidth |
( |
| ) |
const |
◆ operator=()
Image & yourgame::util::Image::operator= |
( |
Image const & |
| ) |
|
|
delete |
◆ premultiplyAlpha()
void yourgame::util::Image::premultiplyAlpha |
( |
| ) |
|
◆ updateRaw()
void yourgame::util::Image::updateRaw |
( |
const uint8_t * |
data, |
|
|
int |
width, |
|
|
int |
height, |
|
|
Layout |
layout = Layout::RGBA |
|
) |
| |
The documentation for this class was generated from the following files: