git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@54336 954022d7-b5bf-4e40-9824-e11837661b57

This commit is contained in:
Oleg.Korshul
2014-02-12 09:02:52 +00:00
committed by Alexander Trofimov
parent 32b075d9c0
commit da36c023c1
2 changed files with 17 additions and 0 deletions

View File

@ -91,6 +91,9 @@ CGraphicsRenderer::CGraphicsRenderer()
m_pDIB = NULL;
m_pCache = NULL;
m_dGlobalAlpha = 1.0;
m_bGlobalAlphaEnabled = FALSE;
}
CGraphicsRenderer::~CGraphicsRenderer()
{
@ -1128,4 +1131,13 @@ void CGraphicsRenderer::CreateFlip(BYTE* pPixels, const Aggplus::CDoubleRect& oR
m_pRenderer->SetPageWidth(m_dWidth, Aggplus::UnitMillimeter);
m_pRenderer->SetPageHeight(m_dHeight, Aggplus::UnitMillimeter);
m_pRenderer->SetPageUnit(Aggplus::UnitMillimeter);
}
void CGraphicsRenderer::put_GlobalAlphaEnabled(const bool& bEnabled, const double& dVal)
{
m_bGlobalAlphaEnabled = bEnabled;
if (m_bGlobalAlphaEnabled)
m_dGlobalAlpha = dVal;
else
m_dGlobalAlpha = 1.0;
}

View File

@ -41,6 +41,9 @@ private:
CImageFilesCache* m_pCache;
double m_dGlobalAlpha;
BOOL m_bGlobalAlphaEnabled;
public:
CGraphicsRenderer();
~CGraphicsRenderer();
@ -182,6 +185,8 @@ public:
virtual HRESULT CommandDouble(const LONG& lType, const double& dCommand);
virtual HRESULT CommandString(const LONG& lType, const std::wstring& sCommand);
void put_GlobalAlphaEnabled(const bool& bEnabled, const double& dVal);
protected:
void _SetFont();
void ApplyTransform(const double& d1, const double& d2, const double& d3, const double& d4, const double& d5, const double& d6);