JunkBox_Lib++ (for Windows) 1.10.1
|
#include <TgaTool.h>
Public Member Functions | |
TGAImage (void) | |
virtual | ~TGAImage (void) |
void | init (void) |
グラフィックデータは解放しない | |
bool | isNull (void) |
グラフィックデータを持っていないか? | |
void | clear (void) |
全空間を画素値 0 にする | |
void | fill (uByte v=(uByte) 0) |
全空間を画素値 v にする | |
void | free (void) |
グラフィックデータを開放する | |
uByte & | point (int x, int y, int c) |
void | getm (int x, int y, int c) |
void | setzero (int x, int y, int c) |
Public Attributes | |
int | xs |
int | ys |
int | col |
int | length |
int | state |
uByte | hd [TGA_HEADER_SIZE] |
uByte | ft [TGA_FOOTER_SIZE] |
uByte * | gp |
|
inline |
Definition at line 41 of file TgaTool.h.
References TGAImage::init().
void clear | ( | void | ) |
Definition at line 55 of file TgaTool.cpp.
References TGAImage::col, TGAImage::gp, TGAImage::xs, and TGAImage::ys.
Definition at line 65 of file TgaTool.cpp.
References TGAImage::col, TGAImage::gp, TGAImage::xs, and TGAImage::ys.
void free | ( | void | ) |
void TGAImage::free(void)
グラフィックデータを開放する
Definition at line 77 of file TgaTool.cpp.
References TGAImage::free(), TGAImage::gp, and TGAImage::init().
Referenced by TGAImage::free(), jbxl::MSGraph2TGAImage(), and jbxl::readTGAData().
void getm | ( | int | x, |
int | y, | ||
int | c ) |
void TGAImage::getm(int x, int y, int c)
Definition at line 108 of file TgaTool.cpp.
References TGAImage::gp, JBXL_GRAPH_MEMORY_ERROR, and TGAImage::state.
Referenced by TGAImage::setzero().
void init | ( | void | ) |
void TGAImage::init(void)
メンバ変数を初期化する.
Definition at line 20 of file TgaTool.cpp.
References TGAImage::col, TGAImage::ft, TGAImage::gp, TGAImage::hd, TGAImage::length, TGAImage::state, TGA_FOOTER_SIZE, TGA_FOOTER_STR, TGA_HEADER_SIZE, TGAImage::xs, and TGAImage::ys.
Referenced by TGAImage::free(), jbxl::MSGraph2TGAImage(), and TGAImage::TGAImage().
bool isNull | ( | void | ) |
グラフィックデータを持いないか?
Definition at line 45 of file TgaTool.cpp.
References TGAImage::gp.
Referenced by jbxl::MSGraph2TGAImage(), and jbxl::TGAImage2MSGraph().
|
inline |
Definition at line 50 of file TgaTool.h.
References TGAImage::col, TGAImage::gp, and TGAImage::xs.
Referenced by jbxl::MSGraph2TGAImage(), and jbxl::TGAImage2MSGraph().
void setzero | ( | int | x, |
int | y, | ||
int | c ) |
void TGAImage::setzero(int x, int y, int c)
Definition at line 89 of file TgaTool.cpp.
References TGAImage::col, TGAImage::getm(), TGAImage::gp, TGAImage::state, TGAImage::xs, and TGAImage::ys.
Referenced by jbxl::MSGraph2TGAImage().
int col |
Definition at line 32 of file TgaTool.h.
Referenced by TGAImage::clear(), TGAImage::fill(), TGAImage::init(), jbxl::MSGraph2TGAImage(), TGAImage::point(), jbxl::readTGAData(), jbxl::setupTGAData(), TGAImage::setzero(), jbxl::TGAImage2MSGraph(), jbxl::writeTGAData(), and jbxl::writeTGAFile().
uByte ft[TGA_FOOTER_SIZE] |
Definition at line 37 of file TgaTool.h.
Referenced by TGAImage::init(), jbxl::readTGAData(), and jbxl::writeTGAData().
uByte* gp |
Definition at line 38 of file TgaTool.h.
Referenced by TGAImage::clear(), TGAImage::fill(), TGAImage::free(), TGAImage::getm(), TGAImage::init(), TGAImage::isNull(), TGAImage::point(), jbxl::readTGAData(), jbxl::readTGAFile(), jbxl::setupTGAData(), TGAImage::setzero(), jbxl::writeTGAData(), and jbxl::writeTGAFile().
uByte hd[TGA_HEADER_SIZE] |
Definition at line 36 of file TgaTool.h.
Referenced by TGAImage::init(), jbxl::readTGAData(), jbxl::setupTGAData(), jbxl::TGAImage2MSGraph(), and jbxl::writeTGAData().
int length |
Definition at line 33 of file TgaTool.h.
Referenced by TGAImage::init(), jbxl::MSGraph2TGAImage(), jbxl::readTGAData(), jbxl::setupTGAData(), and jbxl::writeTGAData().
int state |
Definition at line 34 of file TgaTool.h.
Referenced by TGAImage::getm(), TGAImage::init(), jbxl::MSGraph2TGAImage(), jbxl::readTGAData(), jbxl::readTGAFile(), and TGAImage::setzero().
int xs |
Definition at line 30 of file TgaTool.h.
Referenced by TGAImage::clear(), TGAImage::fill(), TGAImage::init(), jbxl::MSGraph2TGAImage(), TGAImage::point(), jbxl::readTGAData(), jbxl::setupTGAData(), TGAImage::setzero(), and jbxl::TGAImage2MSGraph().
int ys |
Definition at line 31 of file TgaTool.h.
Referenced by TGAImage::clear(), TGAImage::fill(), TGAImage::init(), jbxl::MSGraph2TGAImage(), jbxl::readTGAData(), jbxl::setupTGAData(), TGAImage::setzero(), and jbxl::TGAImage2MSGraph().