Commit da36c023 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@54336 954022d7-b5bf-4e40-9824-e11837661b57
parent 32b075d9
......@@ -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;
}
\ No newline at end of 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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment