Files
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

45 lines
851 B
C++

#ifndef CGRAPHICSLAYER_H
#define CGRAPHICSLAYER_H
#include "Defines.h"
#include "./config.h"
#include "../common/IGrObject.h"
#include <iostream>
namespace Aggplus
{
struct TGraphicsLayerSettings
{
BYTE m_uchOpacity;
};
class GRAPHICS_DECL CGraphicsLayer : public IGrObject
{
public:
CGraphicsLayer(BYTE* pBuffer, bool bExternalBuffer = true);
~CGraphicsLayer();
bool Empty() const;
BYTE* GetBuffer();
void SetDefaultSettings();
void ClearBuffer(bool bDeleteData = true);
void SetSettings(const TGraphicsLayerSettings& oSettings);
const TGraphicsLayerSettings& GetSettings() const;
void SetOpacity(double dOpacity);
void SetOpacity(BYTE uchOpacity);
private:
BYTE* m_pBuffer;
bool m_bExternalBuffer;
TGraphicsLayerSettings m_oSettings;
};
}
#endif // CGRAPHICSLAYER_H