OdfFormat - Reader/Writer - background page (image, pattern, gradient)

This commit is contained in:
ElenaSubbotina
2017-02-05 15:57:17 +03:00
parent f4d636539e
commit bbd429a994
28 changed files with 765 additions and 524 deletions

View File

@ -39,6 +39,8 @@ class CxImage;
class CBgraFrame
{
private:
int m_nFileType;
int m_lWidth;
int m_lHeight;
int m_lStride;
@ -67,6 +69,7 @@ private:
}
inline void Clear()
{
m_nFileType = 0;
m_lWidth = 0;
m_lHeight = 0;
m_lStride = 0;
@ -120,7 +123,10 @@ public:
public:
bool OpenFile(const std::wstring& strFileName, unsigned int nFileType = 0); //0 - detect
bool SaveFile(const std::wstring& strFileName, unsigned int nFileType);
bool Resize(const long& nNewWidth, const long& nNewHeight, bool bDestroyData = true);
bool Resize(const long& nNewWidth, const long& nNewHeight, bool bDestroyData = true);
bool ReColorPatternImage(const std::wstring& strFileName, unsigned int rgbColorBack, unsigned int rgbColorFore);
private:
void CxImageToMediaFrame( CxImage& img );