C++ wrapper over simple writer of PNG files for standard GL memory formats: LUMINANCE, LUMINANCE_ALPHA, RGB, and RGBA.
Definition at line 7 of file TASPngWriter.h.
Public Member Functions | |
TASPngWriter ()=default | |
TASPngWriter (int w, int h, unsigned char t=2, unsigned char d=8) | |
std::vector< unsigned char * > & | ref_row_pointers () |
void | set_luminance () |
void | set_luminance_alpha () |
void | set_rgb () |
void | set_rgba () |
void | set_type (bool is_rgb, bool has_alpha) |
int | write_png_file (std::string_view filename) |
Private Attributes | |
unsigned char | bit_depth = 8 |
unsigned char | color_type = 0 |
int | height = 0 |
std::vector< unsigned char * > | row_pointers |
int | width = 0 |
#include <TASPngWriter.h>
|
default |
Definition at line 16 of file TASPngWriter.h.
|
inline |
Definition at line 32 of file TASPngWriter.h.
|
inline |
Definition at line 27 of file TASPngWriter.h.
|
inline |
Definition at line 28 of file TASPngWriter.h.
|
inline |
Definition at line 29 of file TASPngWriter.h.
|
inline |
Definition at line 30 of file TASPngWriter.h.
Definition at line 21 of file TASPngWriter.h.
int TASPngWriter::write_png_file | ( | std::string_view | filename | ) |
Definition at line 14 of file TASPngWriter.cxx.
|
private |
Definition at line 11 of file TASPngWriter.h.
|
private |
Definition at line 10 of file TASPngWriter.h.
|
private |
Definition at line 9 of file TASPngWriter.h.
|
private |
Definition at line 12 of file TASPngWriter.h.
|
private |
Definition at line 8 of file TASPngWriter.h.