mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 01:04:34 +08:00
12
This commit is contained in:
@ -52,6 +52,16 @@ typedef struct ___tagBITMAPINFOHEADER {
|
||||
DWORD biClrImportant;
|
||||
} ___BITMAPINFOHEADER;
|
||||
|
||||
CImageFileFormatChecker::CImageFileFormatChecker()
|
||||
{
|
||||
eFileType = _CXIMAGE_FORMAT_UNKNOWN;
|
||||
}
|
||||
CImageFileFormatChecker::CImageFileFormatChecker(std::wstring sFileName)
|
||||
{
|
||||
eFileType = _CXIMAGE_FORMAT_UNKNOWN;
|
||||
isImageFile(sFileName);
|
||||
}
|
||||
|
||||
//bmp ( http://ru.wikipedia.org/wiki/BMP )
|
||||
bool CImageFileFormatChecker::isBmpFile(BYTE* pBuffer,DWORD dwBytes)
|
||||
{
|
||||
@ -594,4 +604,4 @@ std::wstring CImageFileFormatChecker::DetectFormatByData(BYTE *Data, int DataSiz
|
||||
else if (isSvmFile(Data,DataSize)) return L"svm";
|
||||
|
||||
return L"jpg";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user