29 lines
630 B
C++
29 lines
630 B
C++
#ifndef PNGCHUNKPHYS_H
|
|
#define PNGCHUNKPHYS_H
|
|
#include "include/png/PNGChunk.hpp"
|
|
|
|
class PNGChunkPHYS : public PNGChunk{
|
|
|
|
private:
|
|
|
|
unsigned int pixelsPerUnitX;
|
|
unsigned int pixelsPerUnitY;
|
|
unsigned int unitToken;
|
|
|
|
public:
|
|
|
|
static const unsigned char UNIT_METER=1;
|
|
static const unsigned char UNIT_UNKNOWN=0;
|
|
|
|
PNGChunkPHYS(unsigned int chunkLength, unsigned int chunkType, const unsigned char* chunkData, unsigned int crc32);
|
|
|
|
unsigned int getPixelsPerUnitX();
|
|
|
|
unsigned int getPixelsPerUnitY();
|
|
|
|
unsigned int getUnit();
|
|
|
|
};
|
|
|
|
#endif // PNGCHUNKPHYS_H
|