Files
core/ASCImageStudio3/ASCGraphics/agg/ASCWrapper/DIB.cpp
Elen.Subbotina 70e623d70b восстановление
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62634 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:05:02 +03:00

15 lines
459 B
C++

#pragma once
#include "stdafx.h"
#include "DIB.h"
#include "../../Interfaces/ASCGraphicsRenderer.h"
void NSDocumentViewer::CPainter::SetDpi(double dDpiX, double dDpiY)
{
m_dKoefPixToMM_X = c_dInch_to_MM / dDpiX;
m_dKoefPixToMM_Y = c_dInch_to_MM / dDpiY;
double dWidthMM = m_lDisplayWidth * m_dKoefPixToMM_X;
double dHeightMM = m_lDisplayHeight * m_dKoefPixToMM_Y;
((CASCGraphicsRenderer*)m_pRenderer)->SetSizes(dWidthMM, dHeightMM);
}