#include <image.h>
|
void | make_invalid () |
|
void | setup (int image_width, int image_height, bool alpha, int default_value) |
|
void | setup_with_alpha_support (int image_width, int image_height, int default_value=0) |
| if default value is negative, default value is ignored, otherwise its the default value for both R, G, B, and A. More...
|
|
void | setup_no_alpha_support (int image_width, int image_height, int default_value=0) |
|
void | set_pixel (int x, int y, const Rgbai &color) |
|
void | set_pixel (int x, int y, unsigned char r, unsigned char g, unsigned char b, unsigned char a) |
|
template<typename TFunc > |
void | run_image_filter (TFunc f) |
|
template<typename TFunc > |
void | run_for_all_top_bottom (TFunc f) |
|
template<typename TFunc > |
void | set_all_top_bottom (TFunc f) |
|
template<typename TFunc > |
void | set_all_bottom_top (TFunc f) |
|
Rgbai | get_pixel (int x, int y) const |
|
std::shared_ptr< MemoryChunk > | write (ImageWriteFormat format, int jpeg_quality=100) const |
|
int | get_pixel_index (int x, int y) const |
|
bool | is_valid () const |
|
Recti | get_indices () const |
|
const unsigned char * | get_pixel_data () const |
|
int | get_pixel_byte_size () const |
|
Definition at line 28 of file image.h.
◆ get_indices()
Recti eu::core::Image::get_indices |
( |
| ) |
const |
◆ get_pixel()
Rgbai eu::core::Image::get_pixel |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
◆ get_pixel_byte_size()
int eu::core::Image::get_pixel_byte_size |
( |
| ) |
const |
◆ get_pixel_data()
const unsigned char * eu::core::Image::get_pixel_data |
( |
| ) |
const |
◆ get_pixel_index()
int eu::core::Image::get_pixel_index |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
◆ is_valid()
bool eu::core::Image::is_valid |
( |
| ) |
const |
◆ make_invalid()
void eu::core::Image::make_invalid |
( |
| ) |
|
◆ run_for_all_top_bottom()
template<typename TFunc >
void eu::core::Image::run_for_all_top_bottom |
( |
TFunc |
f | ) |
|
|
inline |
◆ run_image_filter()
template<typename TFunc >
void eu::core::Image::run_image_filter |
( |
TFunc |
f | ) |
|
|
inline |
◆ set_all_bottom_top()
template<typename TFunc >
void eu::core::Image::set_all_bottom_top |
( |
TFunc |
f | ) |
|
|
inline |
◆ set_all_top_bottom()
template<typename TFunc >
void eu::core::Image::set_all_top_bottom |
( |
TFunc |
f | ) |
|
|
inline |
◆ set_pixel() [1/2]
void eu::core::Image::set_pixel |
( |
int |
x, |
|
|
int |
y, |
|
|
const Rgbai & |
color |
|
) |
| |
◆ set_pixel() [2/2]
void eu::core::Image::set_pixel |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned char |
r, |
|
|
unsigned char |
g, |
|
|
unsigned char |
b, |
|
|
unsigned char |
a |
|
) |
| |
◆ setup()
void eu::core::Image::setup |
( |
int |
image_width, |
|
|
int |
image_height, |
|
|
bool |
alpha, |
|
|
int |
default_value |
|
) |
| |
◆ setup_no_alpha_support()
void eu::core::Image::setup_no_alpha_support |
( |
int |
image_width, |
|
|
int |
image_height, |
|
|
int |
default_value = 0 |
|
) |
| |
◆ setup_with_alpha_support()
void eu::core::Image::setup_with_alpha_support |
( |
int |
image_width, |
|
|
int |
image_height, |
|
|
int |
default_value = 0 |
|
) |
| |
if default value is negative, default value is ignored, otherwise its the default value for both R, G, B, and A.
Definition at line 39 of file image.cc.
◆ write()
◆ components
std::vector<unsigned char> eu::core::Image::components |
◆ has_alpha
bool eu::core::Image::has_alpha = false |
◆ height
int eu::core::Image::height = 0 |
◆ width
int eu::core::Image::width = 0 |
The documentation for this struct was generated from the following files: