libnative-utilities/include/png/PNGChunkITXT.hpp
2024-08-15 18:40:30 +08:00

40 lines
821 B
C++

#ifndef PNGCHUNKITXT_HPP
#define PNGCHUNKITXT_HPP
#include "include/png/PNGChunk.hpp"
class PNGChunkITXT : public PNGChunk{
private:
unsigned char* keyword=0;
unsigned char compressFlag;
unsigned char compressMethod;
unsigned char* label=0;
unsigned char* translatedKeyword=0;
unsigned char* content=0;
public:
PNGChunkITXT(unsigned int chunkLength, unsigned int chunkType, const unsigned char* chunkData, unsigned int crc32);
unsigned char isCompressed();
unsigned char getCompressMethod();
const unsigned char* getKeyword();
const unsigned char* getLabel();
const unsigned char* getTranslatedKeyword();
const unsigned char* getText();
~PNGChunkITXT();
};
#endif // PNGCHUNKITXT_HPP