#ifndef __HGPNG_H__ #define __HGPNG_H__ #include "../base/HGDef.h" #include "../base/HGBaseErr.h" #include "HGImgFmtErr.h" #include "../base/HGImage.h" typedef struct { HGUInt width; HGUInt height; HGByte bitDepth; HGByte colorType; HGByte channels; HGByte filterType; HGByte InterlaceType; HGByte compressionType; HGByte pixelDepth; HGByte physUnitType; HGUInt xPixelsPerUnit; HGUInt yPixelsPerUnit; }HGPngLoadInfo; typedef struct { HGByte physUnitType; HGUInt xPixelsPerUnit; HGUInt yPixelsPerUnit; }HGPngSaveInfo; HGEXPORT HGResult HGAPI HGImgFmt_CheckPngFile(const HGChar* fileName, HGBool* isPng); HGEXPORT HGResult HGAPI HGImgFmt_LoadPngImage(const HGChar* fileName, HGPngLoadInfo* info, HGUInt imgType, HGUInt imgOrigin, HGImage* image); HGEXPORT HGResult HGAPI HGImgFmt_SavePngImage(HGImage image, const HGPngSaveInfo* info, const HGChar* fileName); #endif /* __HGPNG_H__ */