Fix bug with hatch brush (support saving RGBA data in CBgraFrame)

This commit is contained in:
Oleg Korshul
2021-02-02 21:23:02 +03:00
parent 904561d1da
commit 01bf276697
7 changed files with 35 additions and 12 deletions

View File

@ -55,6 +55,8 @@ private:
bool m_bIsGrayScale;
double m_dJpegSaveQuality;
bool m_bIsRGBA;
public:
CBgraFrame();
~CBgraFrame();
@ -80,10 +82,13 @@ public:
bool IsGrayScale();
void put_IsRGBA(const bool& bIsRGBA);
bool get_IsRGBA();
void SetJpegQuality(const double& value);
bool OpenFile(const std::wstring& strFileName, unsigned int nFileType = 0); //0 - detect
bool SaveFile(const std::wstring& strFileName, unsigned int nFileType);
bool SaveFile(const std::wstring& strFileName, unsigned int nFileType);
bool Encode(BYTE*& pBuffer, int& nSize, unsigned int nFileType);
bool Resize(const long& nNewWidth, const long& nNewHeight, bool bDestroyData = true);