33 lines
759 B
C
33 lines
759 B
C
#ifndef __HGBMP_H__
|
|
#define __HGBMP_H__
|
|
|
|
#include "../base/HGDef.h"
|
|
#include "../base/HGBaseErr.h"
|
|
#include "HGImgFmtErr.h"
|
|
#include "../base/HGImage.h"
|
|
|
|
typedef struct
|
|
{
|
|
HGUInt width;
|
|
HGUInt height;
|
|
HGUShort bitCount;
|
|
HGUInt compression;
|
|
|
|
HGUInt xPelsPerMeter;
|
|
HGUInt yPelsPerMeter;
|
|
}HGBmpLoadInfo;
|
|
|
|
typedef struct
|
|
{
|
|
HGUInt xPelsPerMeter;
|
|
HGUInt yPelsPerMeter;
|
|
}HGBmpSaveInfo;
|
|
|
|
HGEXPORT HGResult HGAPI HGImgFmt_CheckBmpFile(const HGChar* fileName, HGBool* isBmp);
|
|
|
|
HGEXPORT HGResult HGAPI HGImgFmt_LoadBmpImage(const HGChar* fileName, HGBmpLoadInfo* info,
|
|
HGUInt imgType, HGUInt imgOrigin, HGImage* image);
|
|
|
|
HGEXPORT HGResult HGAPI HGImgFmt_SaveBmpImage(HGImage image, const HGBmpSaveInfo* info, const HGChar* fileName);
|
|
|
|
#endif /* __HGBMP_H__ */ |