Commit b31d554a authored by ElenaSubbotina's avatar ElenaSubbotina Committed by Alexander Trofimov

no message

parent 1ae20da7
//#define _CRTDBG_LEAK_CHECK_DF //#define _CRTDBG_LEAK_CHECK_DF
#include "stdafx.h"
#include <vector> #include <vector>
#include "../../fontengine/ApplicationFonts.h" #include "../../fontengine/ApplicationFonts.h"
...@@ -65,7 +63,8 @@ void ConvertFolder(CMetaFile &oMetaFile, std::wstring wsFolderPath, const int nT ...@@ -65,7 +63,8 @@ void ConvertFolder(CMetaFile &oMetaFile, std::wstring wsFolderPath, const int nT
double w, h, x, y; double w, h, x, y;
oMetaFile.GetBounds(&x, &y, &w, &h); oMetaFile.GetBounds(&x, &y, &w, &h);
oMetaFile.ConvertToRaster(wsDstFilePath.c_str(), 4, 500); ////oMetaFile.ConvertToRaster(wsDstFilePath.c_str(), 4, 500);
oMetaFile.ConvertToRaster(wsDstFilePath.c_str(), 4, w);
oMetaFile.Close(); oMetaFile.Close();
} }
...@@ -79,7 +78,8 @@ void main() ...@@ -79,7 +78,8 @@ void main()
oFonts.Initialize(); oFonts.Initialize();
CMetaFile oMetaFile(&oFonts); CMetaFile oMetaFile(&oFonts);
ConvertFolder(oMetaFile, L"D://Test Files//Wmf//Test//", c_lMetaWmf); ConvertFolder(oMetaFile, L"D://test//_svm//4//", c_lMetaSvm);
//ConvertFolder(oMetaFile, L"D://Test Files//Wmf//Test//", c_lMetaWmf);
//ConvertFolder(oMetaFile, L"D://Test Files//Emf//Temp//", c_lMetaEmf); //ConvertFolder(oMetaFile, L"D://Test Files//Emf//Temp//", c_lMetaEmf);
//_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); //_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
......
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