Commit 84a2fb09 authored by Oleg Korshul's avatar Oleg Korshul

IsGrayScale image

parent 2f6c564e
......@@ -61,6 +61,7 @@ bool CBgraFrame::OpenFile(const std::wstring& strFileName, unsigned int nFileTyp
return false;
CxImageToMediaFrame(img);
m_bIsGrayScale = img.IsGrayScale();
return true;
}
}
......
......@@ -45,6 +45,8 @@ private:
BYTE* m_pData;
bool m_bIsGrayScale;
public:
CBgraFrame()
{
......@@ -69,6 +71,7 @@ private:
m_lHeight = 0;
m_lStride = 0;
m_pData = NULL;
m_bIsGrayScale = false;
}
public:
......@@ -109,6 +112,11 @@ public:
m_pData = pData;
}
inline bool IsGrayScale()
{
return m_bIsGrayScale;
}
public:
bool OpenFile(const std::wstring& strFileName, unsigned int nFileType = 0); //0 - detect
bool SaveFile(const std::wstring& strFileName, unsigned int nFileType);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment