Refactoring

This commit is contained in:
Oleg Korshul
2022-08-02 20:37:07 +03:00
parent ee60028d7c
commit 3fdefb4952
58 changed files with 23155 additions and 23456 deletions

View File

@ -49,54 +49,54 @@ private:
BYTE* m_pData;
BYTE* m_pPalette;
int m_lPaletteColors;
BYTE* m_pPalette;
int m_lPaletteColors;
bool m_bIsGrayScale;
double m_dJpegSaveQuality;
bool m_bIsGrayScale;
double m_dJpegSaveQuality;
bool m_bIsRGBA;
bool m_bIsRGBA;
public:
CBgraFrame();
~CBgraFrame();
CBgraFrame();
~CBgraFrame();
void Destroy();
void Clear();
void Destroy();
void Clear();
void ClearNoAttack();
void ClearNoAttack();
int get_Width();
void put_Width(const int& lWidth);
int get_Width();
void put_Width(const int& lWidth);
int get_Height();
void put_Height(const int& lHeight);
int get_Height();
void put_Height(const int& lHeight);
int get_Stride();
void put_Stride(const int& lStride);
int get_Stride();
void put_Stride(const int& lStride);
BYTE* get_Data();
void put_Data(BYTE* pData);
BYTE* get_Data();
void put_Data(BYTE* pData);
void put_Palette(BYTE* pDataColors, const int& colors);
void put_Palette(BYTE* pDataColors, const int& colors);
bool IsGrayScale();
bool IsGrayScale();
void put_IsRGBA(const bool& bIsRGBA);
bool get_IsRGBA();
void put_IsRGBA(const bool& bIsRGBA);
bool get_IsRGBA();
void SetJpegQuality(const double& value);
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 Decode(BYTE* pBuffer, int nSize, unsigned int nFileType = 0);
bool Encode(BYTE*& pBuffer, int& nSize, unsigned int nFileType);
bool SaveFile(const std::wstring& strFileName, unsigned int nFileType);
bool Decode(BYTE* pBuffer, int nSize, unsigned int nFileType = 0);
bool Encode(BYTE*& pBuffer, int& nSize, unsigned int nFileType);
bool Resize(const long& nNewWidth, const long& nNewHeight, bool bDestroyData = true);
bool ReColorPatternImage(const std::wstring& strFileName, unsigned int rgbColorBack, unsigned int rgbColorFore);
void FromImage(IGrObject* pGraphics, bool bIsCopy = true);
void FromImage(IGrObject* pGraphics, bool bIsCopy = true);
};
#endif